Mercurial > jwe > octave
diff scripts/plot/private/__bar__.m @ 17462:177147bf7b55
Overhaul use of __pltopt__.m to correctly check for cellstr, not just cell.
* scripts/plot/private/__pltopt__.m: Use modern coding conventions. Eliminate
unneeded input checking in subfunctions. Remove unused variables.
* scripts/plot/contourf.m, scripts/plot/feather.m, scripts/plot/plotmatrix.m,
scripts/plot/private/__bar__.m, scripts/plot/private/__quiver__.m,
scripts/plot/private/__scatter__.m, scripts/plot/private/__stem__.m,
scripts/plot/stairs.m: Use iscellstr, not iscell, to properly validate inputs
to __pltopt__.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 23 Sep 2013 08:55:19 -0700 |
parents | 68bcac3c043a |
children | cc9befe5d271 |
line wrap: on
line diff
--- a/scripts/plot/private/__bar__.m Sun Sep 22 18:33:57 2013 -0700 +++ b/scripts/plot/private/__bar__.m Mon Sep 23 08:55:19 2013 -0700 @@ -73,7 +73,7 @@ group = false; idx++; else - if ((ischar (varargin{idx}) || iscell (varargin{idx})) + if ((ischar (varargin{idx}) || iscellstr (varargin{idx})) && ! have_line_spec) [linespec, valid] = __pltopt__ (func, varargin{idx}, false); if (valid)