diff scripts/plot/scatter.m @ 10697:1215ab6f3491

Honor Matlab color settings for scatter().
author Ben Abbott <bpabbott@mac.com>
date Thu, 10 Jun 2010 19:16:56 -0400
parents 16f53d29049f
children da51afafca80
line wrap: on
line diff
--- a/scripts/plot/scatter.m
+++ b/scripts/plot/scatter.m
@@ -80,4 +80,16 @@
 %!demo
 %! x = randn (100, 1);
 %! y = randn (100, 1);
+%! scatter (x, y, "r")
+
+%!demo
+%! x = randn (100, 1);
+%! y = randn (100, 1);
 %! scatter (x, y, [], sqrt(x.^2 + y.^2));
+
+%!demo
+%! x = rand (10, 1);
+%! y = rand (10, 1);
+%! s = 10 - 10 * log (x.^2+y.^2);
+%! h = scatter (x, y, s, s, "s", "filled");
+