Mercurial > hg > octave-nkf
comparison scripts/plot/feather.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 | bddb9688e41c |
comparison
equal
deleted
inserted
replaced
17461:dea415e4216d | 17462:177147bf7b55 |
---|---|
69 | 69 |
70 line_spec = "b-"; | 70 line_spec = "b-"; |
71 have_line_spec = false; | 71 have_line_spec = false; |
72 while (ioff <= nargin) | 72 while (ioff <= nargin) |
73 arg = varargin{ioff++}; | 73 arg = varargin{ioff++}; |
74 if ((ischar (arg) || iscell (arg)) && ! have_line_spec) | 74 if ((ischar (arg) || iscellstr (arg)) && ! have_line_spec) |
75 [linespec, valid] = __pltopt__ ("feather", arg, false); | 75 [linespec, valid] = __pltopt__ ("feather", arg, false); |
76 if (valid) | 76 if (valid) |
77 line_spec = arg; | 77 line_spec = arg; |
78 have_line_spec = false; | 78 have_line_spec = false; |
79 break; | 79 break; |