comparison scripts/plot/plotmatrix.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 6ba5b1dadd61
children
comparison
equal deleted inserted replaced
17461:dea415e4216d 17462:177147bf7b55
127 have_line_spec = false; 127 have_line_spec = false;
128 have_hist = false; 128 have_hist = false;
129 parent = get (bigax, "parent"); 129 parent = get (bigax, "parent");
130 for i = 1 : nargin - 1 130 for i = 1 : nargin - 1
131 arg = varargin{i}; 131 arg = varargin{i};
132 if (ischar (arg) || iscell (arg)) 132 if (ischar (arg) || iscellstr (arg))
133 [linespec, valid] = __pltopt__ ("plotmatrix", varargin{i}, false); 133 [linespec, valid] = __pltopt__ ("plotmatrix", varargin{i}, false);
134 if (valid) 134 if (valid)
135 have_line_spec = true; 135 have_line_spec = true;
136 linespec = varargin(i); 136 linespec = varargin(i);
137 varargin(i) = []; 137 varargin(i) = [];