Mercurial > octave-nkf
diff scripts/plot/surface.m @ 7146:c7e5e638a8d0
[project @ 2007-11-09 17:49:44 by jwe]
author | jwe |
---|---|
date | Fri, 09 Nov 2007 17:51:42 +0000 |
parents | a67d30883ee0 |
children | 5ff4da7bd2e7 |
line wrap: on
line diff
--- a/scripts/plot/surface.m Fri Nov 09 17:43:07 2007 +0000 +++ b/scripts/plot/surface.m Fri Nov 09 17:51:42 2007 +0000 @@ -84,9 +84,11 @@ ## Make a default surface object. tmp = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c); + set (tmp, "facecolor","flat"); - set (ax, "view", [0, 90], "box", "off"); - set (tmp, "facecolor","flat"); + if (! ishold ()) + set (ax, "view", [0, 90], "box", "off", "xgrid", "on", "ygrid", "on", "zgrid", "on"); + endif if (nargout > 0) h = tmp;