Mercurial > octave
comparison scripts/plot/stairs.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 | 2973de961a66 |
children | 76614e624818 |
comparison
equal
deleted
inserted
replaced
17461:dea415e4216d | 17462:177147bf7b55 |
---|---|
147 ys(ridx,:) = y(2:nr,:); | 147 ys(ridx,:) = y(2:nr,:); |
148 | 148 |
149 have_line_spec = false; | 149 have_line_spec = false; |
150 for i = 1:2:numel (varargin) | 150 for i = 1:2:numel (varargin) |
151 arg = varargin{i}; | 151 arg = varargin{i}; |
152 if (ischar (arg) || iscell (arg)) | 152 if (ischar (arg) || iscellstr (arg)) |
153 [linespec, valid] = __pltopt__ ("stairs", arg, false); | 153 [linespec, valid] = __pltopt__ ("stairs", arg, false); |
154 if (valid) | 154 if (valid) |
155 have_line_spec = true; | 155 have_line_spec = true; |
156 varargin(i) = []; | 156 varargin(i) = []; |
157 break; | 157 break; |