diff 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
line wrap: on
line diff
--- a/scripts/plot/__scatter__.m
+++ b/scripts/plot/__scatter__.m
@@ -74,6 +74,9 @@
       else
 	c = c(:);
       endif
+    elseif (isempty (c))
+      cc = __next_line_color__();
+      c = repmat (cc, numel(x), 1);
     endif
   elseif (firstnonnumeric == istart + 1 && ischar (varargin{istart + 1}))
     c = varargin{istart + 1};