Mercurial > hg > octave-nkf
changeset 18544:df8e5e3a0f67 stable
axis.m: Make "image" and "square" compatible with Matlab (bug #41581).
* axis.m: Set 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:45:14 -0800 |
parents | 83cc56cc7cb7 |
children | aa7ca90ce746 |
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.