Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
11000:98a31b352aab | 11001:2ab8cc6dcced |
---|---|
182 elseif (strcmpi (ax, "square")) | 182 elseif (strcmpi (ax, "square")) |
183 set (ca, "plotboxaspectratio", [1, 1, 1]); | 183 set (ca, "plotboxaspectratio", [1, 1, 1]); |
184 elseif (strcmp (ax, "equal")) | 184 elseif (strcmp (ax, "equal")) |
185 x = xlim; | 185 x = xlim; |
186 y = ylim; | 186 y = ylim; |
187 if (strcmp (get (get (ca, "parent"), "__backend__"), "gnuplot")) | |
188 ## FIXME - gnuplot applies the aspect ratio activepostionproperty. | |
189 set (ca, "activepositionproperty", "position"); | |
190 endif | |
187 set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); | 191 set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); |
188 elseif (strcmpi (ax, "normal")) | 192 elseif (strcmpi (ax, "normal")) |
189 set (ca, "plotboxaspectratio", [1, 1, 1]) | 193 set (ca, "plotboxaspectratio", [1, 1, 1]) |
190 set (ca, "plotboxaspectratiomode", "auto"); | 194 set (ca, "plotboxaspectratiomode", "auto"); |
191 | 195 |