# HG changeset patch # User Ben Abbott # Date 1272666501 14400 # Node ID 4b421123fd175ea1daaed9b74e5c17574d7cd908 # Parent 26d51c6e1c4c0a78fc5ae490acc1b03d4bfa7123 __errplot__.m: Fix bug parsing errorbar style. diff -r 26d51c6e1c4c -r 4b421123fd17 scripts/ChangeLog --- 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 + * plot/private/__errplot__.m: Fix bug parsing errorbar style. * plot/private/__errplot__.m: Implement errorbars in the Matlab style. 2010-04-29 Ben Abbott diff -r 26d51c6e1c4c -r 4b421123fd17 scripts/plot/private/__errplot__.m --- 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);