Mercurial > hg > octave-nkf
diff scripts/plot/axis.m @ 10226:2884758e265b
Replace dataaspectratio props with plotboxaspectratio props.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 29 Jan 2010 21:52:53 -0500 |
parents | 7b74a7fd4761 |
children | 568c7c041fac |
line wrap: on
line diff
--- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -165,22 +165,22 @@ __do_tight_option__ (ca); elseif (strcmpi (ax, "square")) if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin")) - set (ca, "dataaspectratio", [1, 1, 1]); + set (ca, "plotboxaspectratio", [1, 1, 1]); else x = xlim; y = ylim; - set (ca, "dataaspectratio", [(y(2)-y(1)), (x(2)-x(1)), 1]); + set (ca, "plotboxaspectratio", [(y(2)-y(1)), (x(2)-x(1)), 1]); endif elseif (strcmp (ax, "equal")) if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin")) x = xlim; y = ylim; - set (ca, "dataaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); + set (ca, "plotboxaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]); else - set (ca, "dataaspectratio", [1, 1, 1]); + set (ca, "plotboxaspectratio", [1, 1, 1]); endif elseif (strcmpi (ax, "normal")) - set (ca, "dataaspectratiomode", "auto"); + set (ca, "plotboxaspectratiomode", "auto"); ## axis limits elseif (len >= 4 && strcmpi (ax(1:4), "auto"))