changeset 10594:4b421123fd17

__errplot__.m: Fix bug parsing errorbar style.
author Ben Abbott <bpabbott@mac.com>
date Fri, 30 Apr 2010 18:28:21 -0400
parents 26d51c6e1c4c
children 46c8ecc4d565
files scripts/ChangeLog scripts/plot/private/__errplot__.m
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sat May 01 00:05:46 2010 +0300
+++ b/scripts/ChangeLog	Fri Apr 30 18:28:21 2010 -0400
@@ -1,5 +1,6 @@
 2010-04-30  Ben Abbott <bpabbott@mac.com>
 
+	* plot/private/__errplot__.m: Fix bug parsing errorbar style.
 	* plot/private/__errplot__.m: Implement errorbars in the Matlab style.
 
 2010-04-29  Ben Abbott <bpabbott@mac.com>
--- a/scripts/plot/private/__errplot__.m	Sat May 01 00:05:46 2010 +0300
+++ b/scripts/plot/private/__errplot__.m	Fri Apr 30 18:28:21 2010 -0400
@@ -76,12 +76,12 @@
       case 2
         ydata = varargin{1}(:,i);
         xdata = 1:numel(ydata);
-        if (strcmp (ifmt, "xerr") || index (ifmt, "box"))
+        if (strcmp (ifmt, "xerr") || strcmp (ifmt, "box"))
           xldata = varargin{2}(:,i);
           xudata = ldata;
           ldata = [];
           udata = [];
-        elseif (strcmp (ifmt, "yerr") || index (ifmt, "boxy"))
+        elseif (strcmp (ifmt, "yerr") || strcmp (ifmt, "boxy"))
           ldata = varargin{2}(:,i);
           udata = ldata;
           xldata = [];
@@ -90,14 +90,14 @@
           error ("2 column errorplot is only valid or xerr or yerr");
         endif
       case 3
-        if (strcmp (ifmt, "boxxy") || index (ifmt, "xyerr"))
+        if (strcmp (ifmt, "boxxy") || strcmp (ifmt, "xyerr"))
           ydata = varargin{1}(:,i);
           xdata = 1:numel(ydata);
           xldata = varargin{2}(:,i);
           xudata = xldata;
           ldata = varargin{3}(:,i);
           udata = ldata;
-        elseif (strcmp (ifmt, "xerr") || index (ifmt, "box"))
+        elseif (strcmp (ifmt, "xerr") || strcmp (ifmt, "box"))
           xdata = varargin{1}(:,i);
           ydata = varargin{2}(:,i);
           xldata = varargin{3}(:,i);
@@ -113,7 +113,7 @@
           xudata = [];
         endif
       case 4
-        if (strcmp (ifmt, "boxxy") || index (ifmt, "xyerr"))
+        if (strcmp (ifmt, "boxxy") || strcmp (ifmt, "xyerr"))
           xdata = varargin{1}(:,i);
           ydata = varargin{2}(:,i);
           xldata = varargin{3}(:,i);
@@ -136,7 +136,7 @@
           xudata = [];
         endif
       case 6 # boxxy, xyerr
-        if (strcmp (ifmt, "boxxy") || index (ifmt, "xyerr"))
+        if (strcmp (ifmt, "boxxy") || strcmp (ifmt, "xyerr"))
           xdata = varargin{1}(:,i);
           ydata = varargin{2}(:,i);
           xldata = varargin{3}(:,i);