comparison scripts/plot/private/__stem__.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 77bec442a35a
children 76614e624818
comparison
equal deleted inserted replaced
17461:dea415e4216d 17462:177147bf7b55
272 ioff = num_numeric + 1; 272 ioff = num_numeric + 1;
273 while (ioff <= nargin) 273 while (ioff <= nargin)
274 arg = varargin{ioff++}; 274 arg = varargin{ioff++};
275 if (ischar (arg) && any (strcmpi (arg, {"fill", "filled"}))) 275 if (ischar (arg) && any (strcmpi (arg, {"fill", "filled"})))
276 dofill = true; 276 dofill = true;
277 elseif ((ischar (arg) || iscell (arg)) && ! have_line_spec) 277 elseif ((ischar (arg) || iscellstr (arg)) && ! have_line_spec)
278 [linespec, valid] = __pltopt__ (caller, arg, false); 278 [linespec, valid] = __pltopt__ (caller, arg, false);
279 if (valid) 279 if (valid)
280 have_line_spec = true; 280 have_line_spec = true;
281 [lc, ls, mc, ms] = stem_line_spec (linespec); 281 [lc, ls, mc, ms] = stem_line_spec (linespec);
282 else 282 else