Mercurial > hg > octave-lyh
comparison scripts/plot/pcolor.m @ 14247:c4fa5e0b6193
test: Make surface demos reproducible by setting colormap to default at start of demo.
* bicubic.m, interp2.m, interpn.m, griddata.m, image.m, axis.m, clabel.m,
colorbar.m, contour.m, contourf.m, cylinder.m, ezcontour.m, ezcontourf.m,
ezmesh.m, ezmeshc.m, ezsurf.m, ezsurfc.m, hold.m, pcolor.m, plotyy.m,
quiver3.m, ribbon.m, shading.m, slice.m, sombrero.m, surf.m, surfc.m,
surfnorm.m, trisurf.m: Set colormap to default at start of demos to
make them reproducible.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 22 Jan 2012 10:02:27 -0800 |
parents | 11949c9795a0 |
children | 5d3a684236b0 |
comparison
equal
deleted
inserted
replaced
14246:8b220af26cfb | 14247:c4fa5e0b6193 |
---|---|
82 endfunction | 82 endfunction |
83 | 83 |
84 | 84 |
85 %!demo | 85 %!demo |
86 %! clf; | 86 %! clf; |
87 %! colormap ('default'); | |
87 %! [~,~,Z] = peaks (); | 88 %! [~,~,Z] = peaks (); |
88 %! pcolor (Z); | 89 %! pcolor (Z); |
89 | 90 |
90 %!demo | 91 %!demo |
91 %! clf; | 92 %! clf; |
93 %! colormap ('default'); | |
92 %! [X,Y,Z] = sombrero (); | 94 %! [X,Y,Z] = sombrero (); |
93 %! [Fx,Fy] = gradient (Z); | 95 %! [Fx,Fy] = gradient (Z); |
94 %! pcolor (X,Y,Fx+Fy); | 96 %! pcolor (X,Y,Fx+Fy); |
95 %! shading interp; | 97 %! shading interp; |
96 | 98 |