changeset 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 8bec23396924
children d7f45ff0797b
files scripts/ChangeLog scripts/plot/plot3.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed Jun 24 08:07:43 2009 +0200
+++ b/scripts/ChangeLog	Wed Jun 24 11:13:13 2009 -0400
@@ -1,3 +1,7 @@
+2009-06-24  Alexander Mamonov  <mamonov@gmail.com>
+
+	* plot/plot3.m: Correctly compute offsets for property/value pairs.
+
 2009-06-23  Alexander Mamonov  <mamonov@gmail.com>
 
 	* image/imread.m: New test.
--- a/scripts/plot/plot3.m	Wed Jun 24 08:07:43 2009 +0200
+++ b/scripts/plot/plot3.m	Wed Jun 24 11:13:13 2009 -0400
@@ -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