diff scripts/plot/axis.m @ 11001:2ab8cc6dcced

Special treatment activepositionproperty = outerposition for gnuplot.
author Ben Abbott <bpabbott@mac.com>
date Sun, 19 Sep 2010 20:47:46 -0400
parents 9c0b366583cb
children 2114867f2a50
line wrap: on
line diff
--- a/scripts/plot/axis.m
+++ b/scripts/plot/axis.m
@@ -184,6 +184,10 @@
     elseif  (strcmp (ax, "equal"))
       x = xlim;
       y = ylim;
+      if (strcmp (get (get (ca, "parent"), "__backend__"), "gnuplot"))
+        ## FIXME - gnuplot applies the aspect ratio activepostionproperty.
+        set (ca, "activepositionproperty", "position");
+      endif
       set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]);
     elseif (strcmpi (ax, "normal"))
       set (ca, "plotboxaspectratio", [1, 1, 1])