Axis in plot3

Søren Hauberg soren at hauberg.org
Wed Nov 5 03:27:14 CST 2008


Hi All,
  With 3.1.51+ I'm having some problems with the default axis of plot3.
Try the following

  X = [0, 0, 0, 0, NA, 4, 4, 4, 4];
  Y = [0, 2, 2, 0, NA, 0, 2, 2, 0];
  Z = [0, 0, 1, 1, NA, 0, 0, 1, 1];
  plot3 (X, Y, Z, 'r')

The result should be the two sides of a 3d cube. However, the default
axis is so tight that the cube isn't visible. To make the cube visible I
have to run

  axis ([-1, 5, -1, 3, -1, 2])

I only ran into this issue because I was trying to come up with a simple
example of 'axis equal' not working with 3D plots, but I guess I'll have
to come up with another example :-)

Søren



More information about the Bug-octave mailing list