diff scripts/plot/daspect.m @ 10931:a72d53df4fa6

Treatment of activepositionproperty for gnuplot.
author Ben Abbott <bpabbott@mac.com>
date Tue, 31 Aug 2010 13:23:50 -0400
parents fbd7843974fa
children 2c356a35d7f5
line wrap: on
line diff
--- a/scripts/plot/daspect.m	Tue Aug 31 12:39:04 2010 -0400
+++ b/scripts/plot/daspect.m	Tue Aug 31 13:23:50 2010 -0400
@@ -88,7 +88,7 @@
 %! plot (x, cos (x), x, sin (x))
 %! axis square
 %! daspect ([1 1 1])
-%! title ("axis limits should be [0, 4, -2, 2]")
+%! title ("square plot-box with axis limits [0, 4, -2, 2]")
 
 %!demo
 %! x = 0:0.01:4;
@@ -96,5 +96,23 @@
 %! plot (x, cos (x), x, sin (x))
 %! axis ([0 4 -1 1])
 %! daspect ([2 1 1])
-%! title ("axis box should be square")
+%! title ("square plot-box with axis limits [0, 4, -1, 1]")
 
+%!demo
+%! x = 0:0.01:4;
+%! clf
+%! plot (x, cos (x), x, sin (x))
+%! axis square
+%! set (gca, "activepositionproperty", "position")
+%! daspect ([1 1 1])
+%! title ("square plot-box with axis limits [0, 4, -2, 2]")
+
+%!demo
+%! x = 0:0.01:4;
+%! clf
+%! plot (x, cos (x), x, sin (x))
+%! axis ([0 4 -1 1])
+%! set (gca, "activepositionproperty", "position")
+%! daspect ([2 1 1])
+%! title ("square plot-box with axis limits [0, 4, -1, 1]")
+