Mercurial > hg > octave-lyh
comparison scripts/plot/scatter3.m @ 14092:22c50cbad2ce stable
Add clf() to all plot demos.
* axis.m, compass.m, contour3.m, contourf.m, cylinder.m, ellipsoid.m,
errorbar.m, ezcontour.m, ezcontourf.m, ezmesh.m, ezmeshc.m, ezplot.m,
ezplot3.m, ezpolar.m, ezsurf.m, ezsurfc.m, feather.m, fplot.m,
loglogerr.m, pcolor.m, pie.m, pie3.m, plot3.m, plotmatrix.m,
quiver.m, quiver3.m, refreshdata.m, ribbon.m, rose.m, scatter3.m,
semilogx.m, semilogxerr.m, semilogy.m, semilogyerr.m, shading.m,
sombrero.m, stairs.m, stem.m, stem3.m, surf.m, surfc.m, surfl.m,
surfnorm.m, trimesh.m, triplot.m, trisurf.m, uimenu.m:
Add clf() to the beginning of each demo to ensure pre-existing graphics
objects don't interfere with the demo.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 21 Dec 2011 21:19:48 -0500 |
parents | 5f0bb45e615c |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
14091:c3ea07298af4 | 14092:22c50cbad2ce |
---|---|
82 | 82 |
83 endfunction | 83 endfunction |
84 | 84 |
85 | 85 |
86 %!demo | 86 %!demo |
87 %! clf | |
87 %! [x, y, z] = peaks (20); | 88 %! [x, y, z] = peaks (20); |
88 %! scatter3 (x(:), y(:), z(:), [], z(:)); | 89 %! scatter3 (x(:), y(:), z(:), [], z(:)); |
89 | 90 |
90 %!demo | 91 %!demo |
92 %! clf | |
91 %! x = rand (20,1); | 93 %! x = rand (20,1); |
92 %! y = rand (20,1); | 94 %! y = rand (20,1); |
93 %! z = rand (20,1); | 95 %! z = rand (20,1); |
94 %! scatter3 (x(:), y(:), z(:), 10, z(:), "s"); | 96 %! scatter3 (x(:), y(:), z(:), 10, z(:), "s"); |
95 | 97 |
96 %!demo | 98 %!demo |
99 %! clf | |
97 %! x = rand (20,1); | 100 %! x = rand (20,1); |
98 %! y = rand (20,1); | 101 %! y = rand (20,1); |
99 %! z = rand (20,1); | 102 %! z = rand (20,1); |
100 %! scatter3 (x(:), y(:), z(:), 20*z(:), z(:), "s"); | 103 %! scatter3 (x(:), y(:), z(:), 20*z(:), z(:), "s"); |
101 | 104 |
102 %!demo | 105 %!demo |
106 %! clf | |
103 %! x = rand (20,1); | 107 %! x = rand (20,1); |
104 %! y = rand (20,1); | 108 %! y = rand (20,1); |
105 %! z = rand (20,1); | 109 %! z = rand (20,1); |
106 %! scatter3 (x(:), y(:), z(:), 20*z(:), [], "s"); | 110 %! scatter3 (x(:), y(:), z(:), 20*z(:), [], "s"); |
107 | 111 |