diff scripts/plot/surface.m @ 7189:e8d953d03f6a

[project @ 2007-11-26 20:42:09 by dbateman]
author dbateman
date Mon, 26 Nov 2007 20:42:11 +0000
parents 5ff4da7bd2e7
children b48a21816f2e
line wrap: on
line diff
--- a/scripts/plot/surface.m	Mon Nov 26 20:31:25 2007 +0000
+++ b/scripts/plot/surface.m	Mon Nov 26 20:42:11 2007 +0000
@@ -123,7 +123,9 @@
   ## Make a default surface object.
   tmp = __go_surface__ (ax, "xdata", x, "ydata", y, "zdata", z, "cdata", c);
   set (tmp, "facecolor","flat");
-  set (tmp, varargin {firststring:end});
+  if (firststring <= nargin)
+    set (tmp, varargin {firststring:end});
+  endif
 
   if (! ishold ())
     set (ax, "view", [0, 90], "box", "off", "xgrid", "on", "ygrid", "on", "zgrid", "on");