Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
10696:e363b09a30c0 | 10697:1215ab6f3491 |
---|---|
78 endfunction | 78 endfunction |
79 | 79 |
80 %!demo | 80 %!demo |
81 %! x = randn (100, 1); | 81 %! x = randn (100, 1); |
82 %! y = randn (100, 1); | 82 %! y = randn (100, 1); |
83 %! scatter (x, y, "r") | |
84 | |
85 %!demo | |
86 %! x = randn (100, 1); | |
87 %! y = randn (100, 1); | |
83 %! scatter (x, y, [], sqrt(x.^2 + y.^2)); | 88 %! scatter (x, y, [], sqrt(x.^2 + y.^2)); |
89 | |
90 %!demo | |
91 %! x = rand (10, 1); | |
92 %! y = rand (10, 1); | |
93 %! s = 10 - 10 * log (x.^2+y.^2); | |
94 %! h = scatter (x, y, s, s, "s", "filled"); | |
95 |