diff scripts/geometry/griddata.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 5736d93b22d0
line wrap: on
line diff
--- a/scripts/geometry/griddata.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/geometry/griddata.m	Sun Jan 22 10:02:27 2012 -0800
@@ -143,6 +143,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! x = 2*rand (100,1) - 1;
 %! y = 2*rand (size (x)) - 1;
 %! z = sin (2*(x.^2 + y.^2));
@@ -152,6 +153,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! x = 2*rand (1000,1) - 1;
 %! y = 2*rand (size (x)) - 1;
 %! z = sin (2*(x.^2 + y.^2));
@@ -161,10 +163,11 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! x = 2*rand (1000,1) - 1;
 %! y = 2*rand (size (x)) - 1;
 %! z = sin (2*(x.^2 + y.^2));
-%! [xx,yy] = meshgrid (linspace (-1, 1, 32));
+%! [xx,yy] = meshgrid (linspace (-1,1,32));
 %! griddata (x,y,z,xx,yy,"nearest");
 %! title ("nonuniform grid sampled at 1000 points with nearest neighbor");