diff scripts/plot/util/linkprop.m @ 18894:d1750be79dee

linkaxes.m: Implement new function linkaxes. * scripts/plot/util/linkaxes.m: New function * scripts/plot/util/module.mk: Add function to build system. * NEWS: Announce new function * plot.txi: Add function to manual. * __unimplemented__.m: Remove from unimplemented list. * linkprop.m: Use same style for demo as linkaxes.
author Willem Atsma <willem.atsma@tanglebridge.com>
date Tue, 18 Mar 2014 13:05:40 -0700
parents e68788478aa1
children db92e7e28e1f
line wrap: on
line diff
--- a/scripts/plot/util/linkprop.m
+++ b/scripts/plot/util/linkprop.m
@@ -121,15 +121,15 @@
 %! clf;
 %! x = 0:0.1:10;
 %! subplot (1,2,1);
-%! h1 = plot (x, sin (x), "r");
+%! h1 = plot (x, sin (x), 'r');
 %! subplot (1,2,2);
-%! h2 = plot (x, cos (x), "b");
-%! input ("Type <RETURN> to link plots");
-%! hlink = linkprop ([h1, h2], {"color", "linestyle"});
-%! input ("Type <RETURN> to change color");
-%! set (h1, "color", "green");
-%! input ("Type <RETURN> to change linestyle");
-%! set (h2, "linestyle", "--");
+%! h2 = plot (x, cos (x), 'b');
+%! input ('Type <RETURN> to link plots');
+%! hlink = linkprop ([h1, h2], {'color', 'linestyle'});
+%! input ('Type <RETURN> to change color');
+%! set (h1, 'color', 'green');
+%! input ('Type <RETURN> to change linestyle');
+%! set (h2, 'linestyle', '--');
 
 %!test
 %! hf1 = figure ("visible", "off");