diff scripts/plot/colorbar.m @ 14245:4506eade9f04

Use Matlab coding conventions for demos in plot/ directory. * contrast.m, axis.m, clabel.m, colorbar.m, comet.m, contour.m, contour3.m, cylinder.m, daspect.m, errorbar.m, ezplot.m, fplot.m, grid.m, hold.m, isosurface.m, legend.m, loglog.m, loglogerr.m, pareto.m, patch.m, pbaspect.m, pie.m, pie3.m, plot3.m, plotmatrix.m, plotyy.m, quiver.m, quiver3.m, rectangle.m, refreshdata.m, scatter.m, scatter3.m, semilogx.m, semilogxerr.m, semilogy.m, semilogyerr.m, shading.m, stem.m, subplot.m, text.m, title.m, trimesh.m, triplot.m, trisurf.m, uigetdir.m, uigetfile.m, uimenu.m, uiputfile.m, waitbar.m, xlim.m, ylim.m, zlim.m: Use Matlab coding conventions for demos so that compare plots scripts will function.
author Rik <octave@nomad.inbox5.com>
date Sun, 22 Jan 2012 07:31:32 -0800
parents 11949c9795a0
children c4fa5e0b6193
line wrap: on
line diff
--- a/scripts/plot/colorbar.m
+++ b/scripts/plot/colorbar.m
@@ -373,39 +373,39 @@
 %! clf;
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
-%! colorbar ("westoutside");
+%! colorbar ('westoutside');
 
 %!demo
 %! clf;
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
-%! colorbar ("peer", gca (), "northoutside");
+%! colorbar ('peer', gca (), 'northoutside');
 
 %!demo
 %! clf;
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! imagesc (x);
-%! colorbar ("southoutside");
+%! colorbar ('southoutside');
 
 %!demo
 %! clf;
 %! contour (peaks ());
-%! colorbar ("west");
+%! colorbar ('west');
 
 %!demo
 %! clf;
 %! subplot (2,2,1);
 %!  contour (peaks ());
-%!  colorbar ("east");
+%!  colorbar ('east');
 %! subplot (2,2,2);
 %!  contour (peaks ());
-%!  colorbar ("west");
+%!  colorbar ('west');
 %! subplot (2,2,3);
 %!  contour (peaks ());
-%!  colorbar ("north");
+%!  colorbar ('north');
 %! subplot (2,2,4);
 %!  contour (peaks ());
-%!  colorbar ("south");
+%!  colorbar ('south');
 
 %!demo
 %! clf;
@@ -415,13 +415,13 @@
 %!  colorbar ();
 %! subplot (2,2,2);
 %!  imagesc (x);
-%!  colorbar ("westoutside");
+%!  colorbar ('westoutside');
 %! subplot (2,2,3);
 %!  imagesc (x);
-%!  colorbar ("northoutside");
+%!  colorbar ('northoutside');
 %! subplot (2,2,4);
 %!  imagesc (x);
-%!  colorbar ("southoutside");
+%!  colorbar ('southoutside');
 
 %!demo
 %! clf;
@@ -433,7 +433,7 @@
 %! subplot (1,2,2);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("westoutside");
+%!  colorbar ('westoutside');
 
 %!demo
 %! clf;
@@ -441,11 +441,11 @@
 %! subplot (1,2,1);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("northoutside");
+%!  colorbar ('northoutside');
 %! subplot (1,2,2);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("southoutside");
+%!  colorbar ('southoutside');
 
 %!demo
 %! clf;
@@ -457,7 +457,7 @@
 %! subplot (2,1,2);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("westoutside");
+%!  colorbar ('westoutside');
 
 %!demo
 %! clf;
@@ -465,11 +465,11 @@
 %! subplot (2,1,1);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("northoutside");
+%!  colorbar ('northoutside');
 %! subplot (2,1,2);
 %!  imagesc (x);
 %!  axis square;
-%!  colorbar ("southoutside");
+%!  colorbar ('southoutside');
 
 %!demo
 %! clf;
@@ -479,17 +479,17 @@
 %!  colorbar ();
 %! subplot (1,2,2);
 %!  imagesc (x);
-%!  colorbar ("westoutside");
+%!  colorbar ('westoutside');
 
 %!demo
 %! clf;
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (1,2,1);
 %!  imagesc (x);
-%!  colorbar ("northoutside");
+%!  colorbar ('northoutside');
 %! subplot (1,2,2);
 %!  imagesc (x);
-%!  colorbar ("southoutside");
+%!  colorbar ('southoutside');
 
 %!demo
 %! clf;
@@ -499,17 +499,17 @@
 %!  colorbar ();
 %! subplot (2,1,2);
 %!  imagesc (x);
-%!  colorbar ("westoutside");
+%!  colorbar ('westoutside');
 
 %!demo
 %! clf;
 %! n = 64; x = kron (1:n, ones (n,1)); x = abs (x - x.');
 %! subplot (2,1,1);
 %!  imagesc (x);
-%!  colorbar ("northoutside");
+%!  colorbar ('northoutside');
 %! subplot (2,1,2);
 %!  imagesc (x);
-%!  colorbar ("southoutside");
+%!  colorbar ('southoutside');
 
 %!demo
 %! clf;
@@ -517,12 +517,12 @@
 %! subplot (1,2,1);
 %!  contour (x);
 %!  axis square;
-%!  colorbar ("east");
+%!  colorbar ('east');
 %!  xlim ([1, 64]);
 %!  ylim ([1, 64]);
 %! subplot (1,2,2);
 %!  contour (x);
-%!  colorbar ("west");
+%!  colorbar ('west');
 %!  xlim ([1, 64]);
 %!  ylim ([1, 64]);
 
@@ -547,14 +547,14 @@
 %! clf;
 %! imagesc (1 ./ hilb (99));
 %! h = colorbar ();
-%! set (h, "yscale", "log");
+%! set (h, 'yscale', 'log');
 
 %!demo
 %! clf;
 %! imagesc (log10 (1 ./ hilb (99)));
 %! h = colorbar ();
-%! ytick = get (h, "ytick");
-%! set (h, "yticklabel", sprintf ("10^{%g}|", ytick));
+%! ytick = get (h, 'ytick');
+%! set (h, 'yticklabel', sprintf ('10^{%g}|', ytick));
 
 %!demo
 %! clf;
@@ -577,7 +577,7 @@
 %! axis equal;
 %! colorbar ();
 
-## This requires that the axes position be properly determined for "axis equal"
+## This requires that the axes position be properly determined for 'axis equal'
 %!demo
 %! clf;
 %! axes;
@@ -589,32 +589,32 @@
 %!demo
 %! clf;
 %! plot ([0, 2]);
-%! colorbar ("east");
+%! colorbar ('east');
 %! axis square;
 
 %!demo
 %! clf;
 %! plot ([0, 2]);
-%! colorbar ("eastoutside");
+%! colorbar ('eastoutside');
 %! axis square;
 
 %!demo
 %! clf;
 %! pcolor (peaks (20));
 %! shading interp;
-%! axis ("tight", "square");
+%! axis ('tight', 'square');
 %! colorbar ();
-#%! axes ("color","none","box","on","activepositionproperty","position");
+#%! axes ('color','none','box','on','activepositionproperty','position');
 
 %!demo
 %! clf;
 %! plot ([0, 2]);
-%! colorbar ("east");
+%! colorbar ('east');
 %! axis equal;
 
 %!demo
 %! clf;
 %! plot ([0, 2]);
-%! colorbar ("eastoutside");
+%! colorbar ('eastoutside');
 %! axis equal;