Mercurial > octave-nkf
diff scripts/plot/plotyy.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 | 64e7bb01fce2 |
children | 140d50ed8f22 |
line wrap: on
line diff
--- a/scripts/plot/plotyy.m Sun Jun 23 14:00:26 2013 -0700 +++ b/scripts/plot/plotyy.m Sun Jun 23 14:47:05 2013 -0700 @@ -277,11 +277,11 @@ %! y = 5 * cos (t); %! [hax, h1, h2] = plotyy (t, x, t, y); %! [~, h3, h4] = plotyy (t+1, x, t+1, y); -%! set ([h3, h4], "linestyle", "--") -%! xlabel (hax(1), 'xlabel') -%! title (hax(2), 'title') -%! ylabel (hax(1), 'Left axis is Blue') -%! ylabel (hax(2), 'Right axis is Green') +%! set ([h3, h4], 'linestyle', '--'); +%! xlabel (hax(1), 'xlabel'); +%! title (hax(2), 'title'); +%! ylabel (hax(1), 'Left axis is Blue'); +%! ylabel (hax(2), 'Right axis is Green'); function deleteplotyy (h, d, ax2, t2) if (ishandle (ax2) && strcmp (get (ax2, "type"), "axes")