Re: [Kmatplot-general] Documentation
Brought to you by:
kamil
From: Hugo v. d. M. <s13...@ba...> - 2002-05-16 18:33:19
|
> > Here is a simple example (I hope it helps you) > > > > octave:26> [x,y]=meshgrid(1:256); > > octave:27> g=exp(-((x-128).^2+(y-128).^2)/1000); > > octave:28> kaddaxes(0) > > ans = 5 > > octave:29> kimage(g) > > ans = 0 Thanks, kimage is nice. kcontour is also. I'm happy with the 2D stuff. > Bug detected: > > In the above example, it seems that kmesh of octave causes a segfault of > kmatplot. I haven't produced it on a i386 but on an alpha (debian woody > sidded, octave2.1) so I don't know if this bug is also present on i386 ? It's kmesh that I want to figure out. (One uses kaddaxes(1) to get 3D axes instead of 2D.) In my experience, kmatlot dies if one passes it e.g. kmesh(g), but is happy if you pass it kmesh(x,y,g). I have to replace meshgrid(1:256) with meshgrid(1:40) though, as anything larger causes the graph to not be displayed. With it displayed, it's a set of vertical planes, not a nice meshed surface... Hugo |