comparison scripts/plot/ezsurf.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 ce2b59a6d0e5
comparison
equal deleted inserted replaced
14246:8b220af26cfb 14247:c4fa5e0b6193
83 endfunction 83 endfunction
84 84
85 85
86 %!demo 86 %!demo
87 %! clf; 87 %! clf;
88 %! colormap ('default');
88 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2); 89 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
89 %! ezsurf (f, [-3, 3]); 90 %! ezsurf (f, [-3, 3]);
90 91
91 %!demo 92 %!demo
92 %! clf; 93 %! clf;
94 %! colormap ('default');
93 %! fx = @(s,t) cos (s) .* cos(t); 95 %! fx = @(s,t) cos (s) .* cos(t);
94 %! fy = @(s,t) sin (s) .* cos(t); 96 %! fy = @(s,t) sin (s) .* cos(t);
95 %! fz = @(s,t) sin (t); 97 %! fz = @(s,t) sin (t);
96 %! ezsurf (fx, fy, fz, [-pi,pi,-pi/2,pi/2], 20); 98 %! ezsurf (fx, fy, fz, [-pi,pi,-pi/2,pi/2], 20);
97 99