changeset 58:ba866ae124c6

Now accepts single color index for all points.
author samer
date Fri, 09 Oct 2015 13:01:37 +0100
parents ce9021da6ce2
children d060797e9b62
files graphics/scatc.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graphics/scatc.m	Mon Oct 05 00:07:37 2015 +0100
+++ b/graphics/scatc.m	Fri Oct 09 13:01:37 2015 +0100
@@ -18,6 +18,7 @@
 elseif length(S)==1,
 	S=S*ones(size(x,2),1);
 end
+if isscalar(C), C=repmat(C,1,size(x,2)); end
 
 if size(x,1)<3,
 	h=scatter(x(1,:),x(2,:),S,C);