Mercurial > hg > octave-lyh
changeset 17311:8520c264619c
subplot.m: Use isaxes() function instead of ishandle() to check for axes.
* scripts/plot/subplot.m: Use isaxes() function instead of ishandle() to check
for axes.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 20 Aug 2013 22:42:38 -0700 |
parents | 6ba5b1dadd61 |
children | 4c7ee36f591d |
files | scripts/plot/subplot.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -114,8 +114,8 @@ if (! initial_args_decoded && nargin > 0) arg = varargin{1}; - if (nargin == 1 && ishandle (arg)) - ## Axes handle? + if (nargin == 1 && isaxes (arg)) + ## Axes handle axes (arg); cf = get (0, "currentfigure"); set (cf, "nextplot", "add");