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 diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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
+++ 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