Mercurial > octave-nkf
comparison scripts/plot/appearance/pbaspect.m @ 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 | 7bb76a22cde1 |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
17578:7af442c326a8 | 17579:0c6750ace8b4 |
---|---|
68 | 68 |
69 if (nargin == 0) | 69 if (nargin == 0) |
70 pbratio = get (hax, "plotboxaspectratio"); | 70 pbratio = get (hax, "plotboxaspectratio"); |
71 else | 71 else |
72 arg = varargin{1}; | 72 arg = varargin{1}; |
73 if (isreal (arg)) | 73 if (isnumeric (arg)) |
74 if (numel (arg) == 2) | 74 if (numel (arg) == 2) |
75 set (hax, "plotboxaspectratio", [arg, 1]); | 75 set (hax, "plotboxaspectratio", [arg, 1]); |
76 elseif (numel (arg) == 3) | 76 elseif (numel (arg) == 3) |
77 set (hax, "plotboxaspectratio", arg); | 77 set (hax, "plotboxaspectratio", arg); |
78 else | 78 else |