Issue with hggroup and zlim

John W. Eaton jwe at bevo.che.wisc.edu
Fri Aug 29 14:47:57 CDT 2008


On 29-Aug-2008, David Bateman wrote:

| Here is the promised patch

Thanks.

This eliminates the crash and now I see the same axis limit problem
that you originally commented on.

I see that Matlab does not handle the case of

  plot3 (x, complex_vector);

I thought this was supposed to be equivalent to

  plot3 (x, real (complex_vector), imag (complex_vector));

and it seems to be in Octave, but in Matlab, I just get a sine wave in
a 2D plot.  Does that make any sense?  I have to set "view (3)" (or
similar) to get a 3D representation.  The code I'm trying is

  t = (0:0.05:5)';
  tc = exp (2i*pi*t);
  tr = real (tc);
  ti = imag (tc);
  hold on; hg = hggroup ();
  h = plot3 (t, tr, ti, 'parent', hg);

It looks like zlim for the axes object is being set to [-0.6, 0.6] in
the call to __go_line__ in __line__.m, but I don't understand
precisely where that is happening or why.  The zdata in the hggroup
object clearly has min and max values of -1 and 1.

jwe


More information about the Bug-octave mailing list