diff scripts/plot/__plt_get_axis_arg__.m @ 10510:62ebba45054e

Respect the nextplot property value of 'new' for axes and 'replacechildren' for axes and figures.
author Ben Abbott <bpabbott@mac.com>
date Mon, 12 Apr 2010 18:03:25 -0400
parents eb63fbe60fab
children 95c3e38098bf
line wrap: on
line diff
--- a/scripts/plot/__plt_get_axis_arg__.m
+++ b/scripts/plot/__plt_get_axis_arg__.m
@@ -68,6 +68,10 @@
     endif
   endif
 
+  if (ishandle (h) && strcmp (get (h, "nextplot"), "new"))
+    h = axes ();
+  endif
+
   narg = length (varargin);
 
 endfunction