Mercurial > hg > octave-nkf
changeset 18543:00d684465379 gui-release
axis.m: Make "image" and "square" compatible with Matlab (bug #41581).
* axis.m: Change plotboxaspectratiomode to "auto" when doing "image" format.
Set dataaspectratiomode to "auto" when doing "square" format.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 16 Feb 2014 18:42:30 -0800 |
parents | d39fd728ddef |
children | 3a509de8e791 |
files | scripts/plot/appearance/axis.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m +++ b/scripts/plot/appearance/axis.m @@ -185,9 +185,11 @@ ## aspect ratio elseif (strcmpi (ax, "image")) __axis__ (ca, "equal"); + set (ca, "plotboxaspectratiomode", "auto"); __do_tight_option__ (ca); elseif (strcmpi (ax, "square")) - set (ca, "plotboxaspectratio", [1, 1, 1]); + set (ca, "dataaspectratiomode", "auto", + "plotboxaspectratio", [1, 1, 1]); elseif (strcmp (ax, "equal")) if (strcmp (get (get (ca, "parent"), "__graphics_toolkit__"), "gnuplot")) ## FIXME - gnuplot applies the aspect ratio activepostionproperty.