Mercurial > hg > octave-nkf
changeset 17579:0c6750ace8b4
Fix input processing of 'mode' for daspect, pbaspect.
* scripts/plot/appearance/daspect.m, scripts/plot/appearance/pbaspect.m:
Use isnumeric, not isreal which catches strings, to test for input aspect
ratio.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 06 Oct 2013 07:02:43 -0700 |
parents | 7af442c326a8 |
children | 3ef7d28833f3 |
files | scripts/plot/appearance/daspect.m scripts/plot/appearance/pbaspect.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/daspect.m +++ b/scripts/plot/appearance/daspect.m @@ -69,7 +69,7 @@ daratio = get (hax, "dataaspectratio"); else arg = varargin{1}; - if (isreal (arg)) + if (isnumeric (arg)) if (numel (arg) == 2) set (hax, "dataaspectratio", [arg, 1]); elseif (numel (arg) == 3)
--- a/scripts/plot/appearance/pbaspect.m +++ b/scripts/plot/appearance/pbaspect.m @@ -70,7 +70,7 @@ pbratio = get (hax, "plotboxaspectratio"); else arg = varargin{1}; - if (isreal (arg)) + if (isnumeric (arg)) if (numel (arg) == 2) set (hax, "plotboxaspectratio", [arg, 1]); elseif (numel (arg) == 3)