# HG changeset patch # User Rik # Date 1381068163 25200 # Node ID 0c6750ace8b4ee6eacca1a7fd430a0eefecfbf0e # Parent 7af442c326a85b7261020fbaa7a5ce4ddac7309e 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. diff -r 7af442c326a8 -r 0c6750ace8b4 scripts/plot/appearance/daspect.m --- a/scripts/plot/appearance/daspect.m Sat Oct 05 16:31:01 2013 -0700 +++ b/scripts/plot/appearance/daspect.m Sun Oct 06 07:02:43 2013 -0700 @@ -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) diff -r 7af442c326a8 -r 0c6750ace8b4 scripts/plot/appearance/pbaspect.m --- a/scripts/plot/appearance/pbaspect.m Sat Oct 05 16:31:01 2013 -0700 +++ b/scripts/plot/appearance/pbaspect.m Sun Oct 06 07:02:43 2013 -0700 @@ -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)