comparison scripts/plot/__scatter__.m @ 9295:10b9a71a81f1

__scatter__.m: If the color spec is empty, set using __next_line_color__.
author Ben Abbott <bpabbott@mac.com>
date Wed, 03 Jun 2009 10:38:17 -0400
parents 136e72b9afa8
children
comparison
equal deleted inserted replaced
9294:f7a520eb6325 9295:10b9a71a81f1
72 cc = c; 72 cc = c;
73 c = repmat (c, numel(x), 1); 73 c = repmat (c, numel(x), 1);
74 else 74 else
75 c = c(:); 75 c = c(:);
76 endif 76 endif
77 elseif (isempty (c))
78 cc = __next_line_color__();
79 c = repmat (cc, numel(x), 1);
77 endif 80 endif
78 elseif (firstnonnumeric == istart + 1 && ischar (varargin{istart + 1})) 81 elseif (firstnonnumeric == istart + 1 && ischar (varargin{istart + 1}))
79 c = varargin{istart + 1}; 82 c = varargin{istart + 1};
80 firstnonnumeric++; 83 firstnonnumeric++;
81 else 84 else