comparison 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
comparison
equal deleted inserted replaced
7145:d169c9f4a697 7146:c7e5e638a8d0
82 print_usage (); 82 print_usage ();
83 endif 83 endif
84 84
85 ## Make a default surface object. 85 ## Make a default surface object.
86 tmp = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c); 86 tmp = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c);
87 set (tmp, "facecolor","flat");
87 88
88 set (ax, "view", [0, 90], "box", "off"); 89 if (! ishold ())
89 set (tmp, "facecolor","flat"); 90 set (ax, "view", [0, 90], "box", "off", "xgrid", "on", "ygrid", "on", "zgrid", "on");
91 endif
90 92
91 if (nargout > 0) 93 if (nargout > 0)
92 h = tmp; 94 h = tmp;
93 endif 95 endif
94 96