Mercurial > hg > octave-lyh
comparison scripts/plot/axis.m @ 10953:9c0b366583cb
Revert treatment of activepositionproperty from the gnuplot backend.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 08 Sep 2010 17:59:39 -0400 |
parents | a72d53df4fa6 |
children | 2ab8cc6dcced |
comparison
equal
deleted
inserted
replaced
10952:18b0af0bbd6b | 10953:9c0b366583cb |
---|---|
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 | |
191 set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); | 187 set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); |
192 elseif (strcmpi (ax, "normal")) | 188 elseif (strcmpi (ax, "normal")) |
193 set (ca, "plotboxaspectratio", [1, 1, 1]) | 189 set (ca, "plotboxaspectratio", [1, 1, 1]) |
194 set (ca, "plotboxaspectratiomode", "auto"); | 190 set (ca, "plotboxaspectratiomode", "auto"); |
195 | 191 |