Mercurial > hg > octave-lyh
diff scripts/plot/mesh.m @ 16828:ddac88d32d6a
Make demos in plot m-files compatible with Matlab for running comparison script.
* scripts/plot/isosurface.m, scripts/plot/line.m, scripts/plot/mesh.m,
scripts/plot/plotyy.m, scripts/plot/printd.m, scripts/plot/semilogy.m,
scripts/plot/shrinkfaces.m, scripts/plot/stairs.m, scripts/plot/stem.m,
scripts/plot/stemleaf.m, scripts/plot/tetramesh.m: Replace double quote (")
with single quote ('). Use '%' for comment character. Use '...' for
line continuation.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 23 Jun 2013 14:47:05 -0700 |
parents | 5d3a684236b0 |
children | c9346014fed2 |
line wrap: on
line diff
--- a/scripts/plot/mesh.m +++ b/scripts/plot/mesh.m @@ -64,24 +64,24 @@ %!demo -%! clf (); +%! clf; %! x = logspace (0,1,11); %! z = x'*x; %! mesh (x, x, z, z.^2); -%! xlabel xlabel -%! ylabel ylabel -%! zlabel "linear scale" +%! xlabel xlabel; +%! ylabel ylabel; +%! zlabel 'linear scale'; %!demo -%! clf (); +%! clf; %! x = logspace (0,1,11); %! z = x'*x; %! mesh (x, x, z, z.^2); -%! set (gca, "zscale", "log") -%! xlabel xlabel -%! ylabel ylabel -%! zlabel "log scale" -%! if (strcmp (get (gcf, "__graphics_toolkit__"), "gnuplot")) -%! title ({"Gnuplot: mesh color is wrong", "This a Gnuplot bug"}) +%! set (gca, 'zscale', 'log'); +%! xlabel xlabel; +%! ylabel ylabel; +%! zlabel 'log scale'; +%! if (strcmp (get (gcf, '__graphics_toolkit__'), 'gnuplot')) +%! title ({'Gnuplot: mesh color is wrong', 'This a Gnuplot bug'}); %! endif