# HG changeset patch # User Rik # Date 1377063758 25200 # Node ID 8520c264619ccc9456134ea960594f650318b045 # Parent 6ba5b1dadd6149cce45af308d1884a6b05200d20 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. diff --git a/scripts/plot/subplot.m b/scripts/plot/subplot.m --- 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");