Issue with hggroup and zlim

John W. Eaton jwe at bevo.che.wisc.edu
Tue Sep 2 13:50:34 CDT 2008


On  1-Sep-2008, David Bateman wrote:

| David Bateman wrote:
| > Ben Abbott wrote:
| >>
| >> I think that depends upon compatibility in other areas.
| >>
| >> Trusting my memory, plot3 (<real_matrix>, <real_matrix>, 
| >> <real_matrix>) produces a series of 3D lines in Matlab, but produces 
| >> a single line in Octave ... the Octave result will zig-zag (see the 
| >> code below)
| >>
| >>      [x, y] = meshgrid (0:10, 0:10);
| >>      z = x.*y;
| >>      figure(1)
| >>      clf
| >>      plot3 (x, y, z)
| >>
| >> Same for plot3 (<real_matrix>, <complex_matrix)
| >>
| >>      y = y + 1i*z;
| >>      figure(2)
| >>      clf
| >>      plot3 (x, y)
| >>
| >> This issue is what I think needs attention, and I have a faint 
| >> recollection that maintaining the complex_vector/matrix feature was 
| >> problematic.
| >>
| >> Ben
| >>
| > Ok, this is clearly a bug. I think the attached addresses this. and now
| >
| > [x, y] = meshgrid (0:10, 0:10); z = x.*y; figure(1); clf; h = 
| > plot3(x,y + 1i *z); zlim(0,100)
| >
| > and
| >
| > [x, y] = meshgrid (0:10, 0:10); z = x.*y; figure(1); clf; h = 
| > plot3(x,y,z); zlim(0,100)
| >
| > both work correctly on my machine. Note the zlim is needed to get 
| > around the issue addressed in
| >
| > http://hg.tw-math.de/octave-graphics-mq/rev/7747c2f2f3ed
| >
| > D.
| >
| >
| 
| Please use the attached instead, that moves the color definition inside 
| the loop over the columns of the matrices so that __next_line_color__ is 
| called for each column.

I applied this changeset.

Thanks,

jwe


More information about the Bug-octave mailing list