# 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 -r 6ba5b1dadd61 -r 8520c264619c scripts/plot/subplot.m --- a/scripts/plot/subplot.m Tue Aug 20 22:35:08 2013 -0700 +++ b/scripts/plot/subplot.m Tue Aug 20 22:42:38 2013 -0700 @@ -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");