changeset 17633:382aaf2d533a

isosurface.m: Turn off plot box and grid for Matlab visual compatibility. * scripts/plot/draw/isosurface.m: Turn off plot box and grid for Matlab visual compatibility. Add 'axis equal' to %!demo to make it look right.
author Rik <rik@octave.org>
date Fri, 11 Oct 2013 09:39:04 -0700
parents bd0a84de3375
children bdbf91c0a1a4
files scripts/plot/draw/isosurface.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/isosurface.m	Fri Oct 11 12:28:26 2013 -0400
+++ b/scripts/plot/draw/isosurface.m	Fri Oct 11 09:39:04 2013 -0700
@@ -174,8 +174,7 @@
                     "FaceColor", "g", "EdgeColor", "k");
       endif
       if (! ishold ())
-        set (hax, "view", [-37.5, 30],
-                  "xgrid", "on", "ygrid", "on", "zgrid", "on");
+        set (hax, "view", [-37.5, 30], "box", "off");
       endif
     case 1
       varargout = {fvc};
@@ -195,6 +194,7 @@
 %! [x,y,z] = meshgrid (-2:0.5:2, -2:0.5:2, -2:0.5:2);
 %! v = x.^2 + y.^2 + z.^2;
 %! isosurface (x, y, z, v, 1);
+%! axis equal;
 %! title ('isosurface of a sphere');
 
 %!shared x, y, z, val