# HG changeset patch # User Rik # Date 1381509544 25200 # Node ID 382aaf2d533a9ea57e860109efd87f41253f46c8 # Parent bd0a84de33758ec611cfb66fb5e6ebd574d94fe5 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. diff -r bd0a84de3375 -r 382aaf2d533a scripts/plot/draw/isosurface.m --- 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