Mercurial > hg > octave-lyh
diff scripts/plot/scatter3.m @ 9295:10b9a71a81f1
__scatter__.m: If the color spec is empty, set using __next_line_color__.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 03 Jun 2009 10:38:17 -0400 |
parents | 16f53d29049f |
children | be55736a0783 |
line wrap: on
line diff
--- a/scripts/plot/scatter3.m +++ b/scripts/plot/scatter3.m @@ -83,3 +83,24 @@ %!demo %! [x, y, z] = peaks (20); %! scatter3 (x(:), y(:), z(:), [], z(:)); + +%!demo +%! x = rand (20,1); +%! y = rand (20,1); +%! z = rand (20,1); +%! scatter3 (x(:), y(:), z(:), 10, z(:), "s"); + +%!demo +%! x = rand (20,1); +%! y = rand (20,1); +%! z = rand (20,1); +%! scatter3 (x(:), y(:), z(:), 20*z(:), z(:), "s"); + +%!demo +%! x = rand (20,1); +%! y = rand (20,1); +%! z = rand (20,1); +%! scatter3 (x(:), y(:), z(:), 20*z(:), [], "s"); + + +