comparison scripts/plot/subplot.m @ 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 bc924baa2c4e
children 088d014a7fe2
comparison
equal deleted inserted replaced
17310:6ba5b1dadd61 17311:8520c264619c
112 endif 112 endif
113 endif 113 endif
114 114
115 if (! initial_args_decoded && nargin > 0) 115 if (! initial_args_decoded && nargin > 0)
116 arg = varargin{1}; 116 arg = varargin{1};
117 if (nargin == 1 && ishandle (arg)) 117 if (nargin == 1 && isaxes (arg))
118 ## Axes handle? 118 ## Axes handle
119 axes (arg); 119 axes (arg);
120 cf = get (0, "currentfigure"); 120 cf = get (0, "currentfigure");
121 set (cf, "nextplot", "add"); 121 set (cf, "nextplot", "add");
122 return; 122 return;
123 elseif (isscalar (arg) && arg >= 0) 123 elseif (isscalar (arg) && arg >= 0)