diff scripts/plot/subplot.m @ 17303: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
line wrap: on
line diff
--- 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");