comparison scripts/plot/private/__quiver__.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 3f0ed69d21c6
children 76614e624818
comparison
equal deleted inserted replaced
17461:dea415e4216d 17462:177147bf7b55
81 args = {}; 81 args = {};
82 while (ioff <= nargin) 82 while (ioff <= nargin)
83 arg = varargin{ioff++}; 83 arg = varargin{ioff++};
84 if (ischar (arg) && strcmpi (arg, "filled")) 84 if (ischar (arg) && strcmpi (arg, "filled"))
85 have_filled = true; 85 have_filled = true;
86 elseif ((ischar (arg) || iscell (arg)) 86 elseif ((ischar (arg) || iscellstr (arg))
87 && ! have_line_spec) 87 && ! have_line_spec)
88 [linespec, valid] = __pltopt__ ("quiver", arg, false); 88 [linespec, valid] = __pltopt__ ("quiver", arg, false);
89 if (valid) 89 if (valid)
90 have_line_spec = true; 90 have_line_spec = true;
91 if (strcmp (linespec.linestyle, "none")) 91 if (strcmp (linespec.linestyle, "none"))