changeset 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 8b220af26cfb
children 48cb466f1418
files scripts/general/bicubic.m scripts/general/interp2.m scripts/general/interpn.m scripts/geometry/griddata.m scripts/image/image.m scripts/plot/axis.m scripts/plot/clabel.m scripts/plot/colorbar.m scripts/plot/contour.m scripts/plot/contourf.m scripts/plot/cylinder.m scripts/plot/ezcontour.m scripts/plot/ezcontourf.m scripts/plot/ezmesh.m scripts/plot/ezmeshc.m scripts/plot/ezsurf.m scripts/plot/ezsurfc.m scripts/plot/hold.m scripts/plot/pcolor.m scripts/plot/plotyy.m scripts/plot/quiver3.m scripts/plot/ribbon.m scripts/plot/shading.m scripts/plot/slice.m scripts/plot/sombrero.m scripts/plot/surf.m scripts/plot/surfc.m scripts/plot/surfnorm.m scripts/plot/trisurf.m
diffstat 29 files changed, 115 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/bicubic.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/general/bicubic.m	Sun Jan 22 10:02:27 2012 -0800
@@ -201,6 +201,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,4]+10;
 %! y = [-10,-9,-8];
--- a/scripts/general/interp2.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/general/interp2.m	Sun Jan 22 10:02:27 2012 -0800
@@ -446,6 +446,8 @@
 
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,4]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -455,6 +457,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! [x,y,A] = peaks (10);
 %! x = x(1,:)'; y = y(:,1);
 %! xi = linspace (min(x), max(x), 41);
@@ -464,6 +468,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,4]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -473,6 +479,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! [x,y,A] = peaks (10);
 %! x = x(1,:)'; y = y(:,1);
 %! xi = linspace (min(x), max(x), 41);
@@ -482,6 +490,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,2]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -491,6 +501,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! [x,y,A] = peaks (10);
 %! x = x(1,:)'; y = y(:,1);
 %! xi = linspace (min(x), max(x), 41);
@@ -500,6 +512,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,2]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -509,6 +523,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! [x,y,A] = peaks (10);
 %! x = x(1,:)'; y = y(:,1);
 %! xi = linspace (min(x), max(x), 41);
@@ -518,6 +534,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,2]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -527,6 +545,8 @@
 %! hold on; plot3 (x(:),y(:),A(:),"b*"); hold off;
 
 %!demo
+%! clf;
+%! colormap ("default");
 %! [x,y,A] = peaks (10);
 %! x = x(1,:)'; y = y(:,1);
 %! xi = linspace (min(x), max(x), 41);
--- a/scripts/general/interpn.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/general/interpn.m	Sun Jan 22 10:02:27 2012 -0800
@@ -212,6 +212,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,4]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -222,6 +223,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,4]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -232,6 +234,7 @@
 
 %!#demo  # FIXME: Uncomment when support for "cubic" has been added
 %! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,2]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -242,6 +245,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! A = [13,-1,12;5,4,3;1,6,2];
 %! x = [0,1,2]; y = [10,11,12];
 %! xi = linspace (min(x), max(x), 17);
@@ -252,6 +256,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! x = y = z = -1:1;
 %! f = @(x,y,z) x.^2 - y - z.^2;
 %! [xx, yy, zz] = meshgrid (x, y, z);
--- 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");
 
--- a/scripts/image/image.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/image/image.m	Sun Jan 22 10:02:27 2012 -0800
@@ -178,6 +178,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! img = 1 ./ hilb (11);
 %! x = -5:5;
 %! y = x;
@@ -202,6 +203,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! g = 0.1:0.1:10;
 %! h = g'*g;
 %! imagesc (g, g, sin (h));
@@ -213,6 +215,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! g = 0.1:0.1:10;
 %! h = g'*g;
 %! imagesc (g, g, sin (h));
@@ -225,6 +228,7 @@
 
 %!demo
 %! clf;
+%! colormap ("default");
 %! g = 0.1:0.1:10;
 %! h = g'*g;
 %! plot (g, 10.5 * ones (size (g)));
--- a/scripts/plot/axis.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/axis.m	Sun Jan 22 10:02:27 2012 -0800
@@ -489,6 +489,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x,y,z] = peaks (50);
 %! x1 = max (x(:));
 %! pcolor (x-x1, y-x1/2, z);
--- a/scripts/plot/clabel.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/clabel.m	Sun Jan 22 10:02:27 2012 -0800
@@ -133,11 +133,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [c, h] = contour (peaks (), -4:6);
 %! clabel (c, h, -4:2:6, 'fontsize', 12);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [c, h] = contourf (peaks (), -7:6);
 %! clabel (c, h, -6:2:6, 'fontsize', 12);
 
--- a/scripts/plot/colorbar.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/colorbar.m	Sun Jan 22 10:02:27 2012 -0800
@@ -365,35 +365,41 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
 %! colorbar ();
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
 %! colorbar ('westoutside');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
 %! colorbar ('peer', gca (), 'northoutside');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
 %! colorbar ('southoutside');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! contour (peaks ());
 %! colorbar ('west');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! subplot (2,2,1);
 %!  contour (peaks ());
 %!  colorbar ('east');
@@ -409,6 +415,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,2,1);
 %!  imagesc (x);
@@ -425,6 +432,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  imagesc (x);
@@ -437,6 +445,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  imagesc (x);
@@ -449,6 +458,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,1,1);
 %!  imagesc (x);
@@ -461,6 +471,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,1,1);
 %!  imagesc (x);
@@ -473,6 +484,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  imagesc (x);
@@ -483,6 +495,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  imagesc (x);
@@ -493,6 +506,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,1,1);
 %!  imagesc (x);
@@ -503,6 +517,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,1,1);
 %!  imagesc (x);
@@ -513,6 +528,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  contour (x);
@@ -528,6 +544,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! contour (x);
 %! xlim ([1, 64]);
@@ -537,6 +554,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! contour (x);
 %! xlim ([1, 64]);
@@ -545,12 +563,14 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! imagesc (1 ./ hilb (99));
 %! h = colorbar ();
 %! set (h, 'yscale', 'log');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! imagesc (log10 (1 ./ hilb (99)));
 %! h = colorbar ();
 %! ytick = get (h, 'ytick');
@@ -558,6 +578,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 5; x = linspace (0,5,n); y = linspace (0,1,n);
 %! imagesc (1 ./ hilb (n));
 %! axis equal;
@@ -565,6 +586,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 5; x = linspace (0,5,n); y = linspace (0,1,n);
 %! imagesc (x, y, 1 ./ hilb (n));
 %! axis equal;
@@ -572,6 +594,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! n = 5; x = linspace (0,5,n); y = linspace (0,1,n);
 %! imagesc (y, x, 1 ./ hilb (n));
 %! axis equal;
@@ -580,6 +603,7 @@
 ## This requires that the axes position be properly determined for 'axis equal'
 %!demo
 %! clf;
+%! colormap ('default');
 %! axes;
 %! colorbar ();
 %! hold on;
@@ -588,18 +612,21 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! plot ([0, 2]);
 %! colorbar ('east');
 %! axis square;
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! plot ([0, 2]);
 %! colorbar ('eastoutside');
 %! axis square;
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! pcolor (peaks (20));
 %! shading interp;
 %! axis ('tight', 'square');
@@ -608,12 +635,14 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! plot ([0, 2]);
 %! colorbar ('east');
 %! axis equal;
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! plot ([0, 2]);
 %! colorbar ('eastoutside');
 %! axis equal;
--- a/scripts/plot/contour.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/contour.m	Sun Jan 22 10:02:27 2012 -0800
@@ -73,11 +73,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = peaks ();
 %! contour (x, y, z);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [theta, r] = meshgrid (linspace (0,2*pi,64), linspace (0,1,64));
 %! [X, Y] = pol2cart (theta, r);
 %! Z = sin (2*theta) .* (1-r);
@@ -85,6 +87,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! x = linspace (-2, 2);
 %! [x, y] = meshgrid (x);
 %! z = sqrt (x.^2 + y.^2) ./ (x.^2 + y.^2 + 1);
--- a/scripts/plot/contourf.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/contourf.m	Sun Jan 22 10:02:27 2012 -0800
@@ -84,11 +84,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = peaks (50);
 %! contourf (x, y, z, -7:9);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [theta, r] = meshgrid (linspace (0,2*pi,64), linspace (0,1,64));
 %! [X, Y] = pol2cart (theta, r);
 %! Z = sin (2*theta) .* (1-r);
--- a/scripts/plot/cylinder.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/cylinder.m	Sun Jan 22 10:02:27 2012 -0800
@@ -88,6 +88,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = cylinder (10:-1:0,50);
 %! surf (x, y, z);
 %! title ('a cone');
--- a/scripts/plot/ezcontour.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezcontour.m	Sun Jan 22 10:02:27 2012 -0800
@@ -64,6 +64,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezcontour (f, [-3, 3]);
 
--- a/scripts/plot/ezcontourf.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezcontourf.m	Sun Jan 22 10:02:27 2012 -0800
@@ -64,6 +64,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezcontourf (f, [-3, 3]);
 
--- a/scripts/plot/ezmesh.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezmesh.m	Sun Jan 22 10:02:27 2012 -0800
@@ -85,11 +85,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezmesh (f, [-3, 3]);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! fx = @(s,t) cos (s) .* cos(t);
 %! fy = @(s,t) sin (s) .* cos(t);
 %! fz = @(s,t) sin (t);
--- a/scripts/plot/ezmeshc.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezmeshc.m	Sun Jan 22 10:02:27 2012 -0800
@@ -75,6 +75,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezmeshc (f, [-3, 3]);
 
--- a/scripts/plot/ezsurf.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezsurf.m	Sun Jan 22 10:02:27 2012 -0800
@@ -85,11 +85,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezsurf (f, [-3, 3]);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! fx = @(s,t) cos (s) .* cos(t);
 %! fy = @(s,t) sin (s) .* cos(t);
 %! fz = @(s,t) sin (t);
--- a/scripts/plot/ezsurfc.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ezsurfc.m	Sun Jan 22 10:02:27 2012 -0800
@@ -75,6 +75,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! f = @(x,y) sqrt (abs (x .* y)) ./ (1 + x.^2 + y.^2);
 %! ezsurfc (f, [-3, 3]);
 
--- a/scripts/plot/hold.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/hold.m	Sun Jan 22 10:02:27 2012 -0800
@@ -106,6 +106,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! hold on;
 %! imagesc (1 ./ hilb (4));
 %! plot (1:4, '-s');
@@ -113,6 +114,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! hold on;
 %! imagesc (1 ./ hilb (2));
 %! imagesc (1 ./ hilb (4));
@@ -120,6 +122,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! hold on;
 %! plot (1:4, '-s');
 %! imagesc (1 ./ hilb (4));
@@ -127,7 +130,7 @@
 
 %!demo
 %! clf;
-%! colormap (jet (64));
+%! colormap ('default');
 %! t = linspace (-3, 3, 50);
 %! [x, y] = meshgrid (t, t);
 %! z = peaks (x, y);
--- a/scripts/plot/pcolor.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/pcolor.m	Sun Jan 22 10:02:27 2012 -0800
@@ -84,11 +84,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [~,~,Z] = peaks ();
 %! pcolor (Z);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [X,Y,Z] = sombrero ();
 %! [Fx,Fy] = gradient (Z);
 %! pcolor (X,Y,Fx+Fy);
--- a/scripts/plot/plotyy.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/plotyy.m	Sun Jan 22 10:02:27 2012 -0800
@@ -245,6 +245,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! x = linspace (-1, 1, 201);
 %! subplot (2,2,1);
 %!  plotyy (x,sin(pi*x), x,10*cos(pi*x));
--- a/scripts/plot/quiver3.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/quiver3.m	Sun Jan 22 10:02:27 2012 -0800
@@ -87,7 +87,7 @@
 
 %!demo
 %! clf;
-%! colormap (jet (64));
+%! colormap ('default');
 %! [x,y] = meshgrid (-1:0.1:1);
 %! z = sin (2*pi * sqrt (x.^2 + y.^2));
 %! theta = 2*pi * sqrt (x.^2 + y.^2) + pi/2;
@@ -98,6 +98,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = peaks (25);
 %! surf (x, y, z);
 %! hold on;
@@ -108,6 +109,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = peaks (25);
 %! surf (x, y, z);
 %! hold on;
--- a/scripts/plot/ribbon.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/ribbon.m	Sun Jan 22 10:02:27 2012 -0800
@@ -87,6 +87,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = sombrero ();
 %! [x, y] = meshgrid (x, y);
 %! ribbon (y, z);
--- a/scripts/plot/shading.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/shading.m	Sun Jan 22 10:02:27 2012 -0800
@@ -76,37 +76,42 @@
 
 %!demo
 %! clf;
-%! colormap (jet (64));
+%! colormap ('default');
 %! sombrero ();
 %! shading faceted;
 %! title ('shading ''faceted''');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! sombrero ();
 %! shading flat;
 %! title ('shading ''flat''');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! sombrero ();
 %! shading interp;
 %! title ('shading ''interp''');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! pcolor (peaks ());
 %! shading faceted;
 %! title ('shading ''faceted''');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! pcolor (peaks ());
 %! shading flat;
 %! title ('shading ''flat''');
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! pcolor (peaks ());
 %! shading interp;
 %! title ('shading ''interp''');
--- a/scripts/plot/slice.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/slice.m	Sun Jan 22 10:02:27 2012 -0800
@@ -183,12 +183,14 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = meshgrid (linspace (-8, 8, 32));
 %! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2));
 %! slice (x, y, z, v, [], 0, []);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [x, y, z] = meshgrid (linspace (-8, 8, 32));
 %! v = sin (sqrt (x.^2 + y.^2 + z.^2)) ./ (sqrt (x.^2 + y.^2 + z.^2));
 %! [xi, yi] = meshgrid (linspace (-7, 7));
--- a/scripts/plot/sombrero.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/sombrero.m	Sun Jan 22 10:02:27 2012 -0800
@@ -64,5 +64,6 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! sombrero ();
 
--- a/scripts/plot/surf.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/surf.m	Sun Jan 22 10:02:27 2012 -0800
@@ -67,11 +67,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [~,~,Z] = peaks ();
 %! surf (Z);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [~,~,Z] = sombrero ();
 %! [Fx,Fy] = gradient (Z);
 %! surf (Z, Fx+Fy);
@@ -79,6 +81,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [X,Y,Z] = sombrero ();
 %! [~,Fy] = gradient (Z);
 %! surf (X, Y, Z, Fy);
--- a/scripts/plot/surfc.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/surfc.m	Sun Jan 22 10:02:27 2012 -0800
@@ -77,11 +77,13 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [~,~,Z] = peaks ();
 %! surfc (Z);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [~,~,Z] = sombrero ();
 %! [Fx,Fy] = gradient (Z);
 %! surfc (Z, Fx+Fy);
@@ -89,6 +91,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! [X,Y,Z] = sombrero ();
 %! [~,Fy] = gradient (Z);
 %! surfc (X,Y,Z,Fy);
--- a/scripts/plot/surfnorm.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/surfnorm.m	Sun Jan 22 10:02:27 2012 -0800
@@ -144,16 +144,18 @@
 
 %!demo
 %! clf;
-%! colormap (jet (64));
+%! colormap ('default');
 %! [x, y, z] = peaks (10);
 %! surfnorm (x, y, z);
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! surfnorm (peaks (10));
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! surfnorm (peaks (32));
 %! shading interp;
 
--- a/scripts/plot/trisurf.m	Sun Jan 22 07:43:20 2012 -0800
+++ b/scripts/plot/trisurf.m	Sun Jan 22 10:02:27 2012 -0800
@@ -74,6 +74,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! N = 31;
 %! [x, y] = meshgrid (1:N);
 %! tri = delaunay (x, y);
@@ -85,6 +86,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! N = 31;
 %! [x, y] = meshgrid (1:N);
 %! tri = delaunay (x, y);
@@ -96,6 +98,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! old_state = rand ('state');
 %! restore_state = onCleanup (@() rand ('state', old_state));
 %! rand ('state', 10);
@@ -108,6 +111,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! x = rand (100, 1);
 %! y = rand (100, 1);
 %! z = x.^2 + y.^2;
@@ -116,6 +120,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! x = rand (100, 1);
 %! y = rand (100, 1);
 %! z = x.^2 + y.^2;
@@ -124,6 +129,7 @@
 
 %!demo
 %! clf;
+%! colormap ('default');
 %! x = rand (100, 1);
 %! y = rand (100, 1);
 %! z = x.^2 + y.^2;