diff scripts/plot/plot3.m @ 9385:5497b0795fb9

plot3.m: correctly compute offsets for property/value pairs
author Alexander Mamonov <mamonov@gmail.com>
date Wed, 24 Jun 2009 11:13:13 -0400
parents 16f53d29049f
children 4516a0c97ced
line wrap: on
line diff
--- a/scripts/plot/plot3.m
+++ b/scripts/plot/plot3.m
@@ -145,7 +145,7 @@
 	    if (nargin - arg < 2)
 	      error ("plot3: properties must appear followed by a value");
 	    endif
-	    properties = [properties, varargin(arg:arg+1)];
+	    properties = [properties, varargin(arg+1:arg+2)];
 	    arg += 2;
 	  endwhile
 	endif