comparison scripts/plot/scatter.m @ 14782:566cf544d020

Fix scatter() for filled markers using gnuplot. * scripts/plot/scripts/__scatter__.m: Allow filled markers with using gnuplot and when the color is specified as an RGB triplet. Bug # 36193. Add demo.
author John Hunt <huntj@gmx.us>
date Tue, 19 Jun 2012 19:00:55 -0400
parents 4506eade9f04
children 4563d9935853
comparison
equal deleted inserted replaced
14781:e190f6da40f6 14782:566cf544d020
85 %! clf; 85 %! clf;
86 %! x = randn (100, 1); 86 %! x = randn (100, 1);
87 %! y = randn (100, 1); 87 %! y = randn (100, 1);
88 %! scatter (x, y, 'r'); 88 %! scatter (x, y, 'r');
89 %! title ('Scatter plot with red bubbles'); 89 %! title ('Scatter plot with red bubbles');
90
91 %!demo
92 %! clf;
93 %! x = randn (100, 1);
94 %! y = randn (100, 1);
95 %! c = x .* y;
96 %! scatter (x, y, 20, c, "filled");
97 %! title ('Scatter with colors');
90 98
91 %!demo 99 %!demo
92 %! clf; 100 %! clf;
93 %! x = randn (100, 1); 101 %! x = randn (100, 1);
94 %! y = randn (100, 1); 102 %! y = randn (100, 1);