Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/scripts/plot/scatter.m +++ b/scripts/plot/scatter.m @@ -92,6 +92,14 @@ %! clf; %! x = randn (100, 1); %! y = randn (100, 1); +%! c = x .* y; +%! scatter (x, y, 20, c, "filled"); +%! title ('Scatter with colors'); + +%!demo +%! clf; +%! x = randn (100, 1); +%! y = randn (100, 1); %! scatter (x, y, [], sqrt (x.^2 + y.^2)); %! title ('Scatter plot with bubble color determined by distance from origin');