diff scripts/plot/figure.m @ 6780:38bc358b6c9a

[project @ 2007-07-18 18:02:56 by jwe]
author jwe
date Wed, 18 Jul 2007 18:04:56 +0000
parents b298a4c12fc3
children 76e3d985ae56
line wrap: on
line diff
--- a/scripts/plot/figure.m
+++ b/scripts/plot/figure.m
@@ -61,9 +61,8 @@
 
   if (rem (nargs, 2) == 0)
     if (isnan (f) || init_new_figure)
-      f = __go_figure__ (f);
-    endif
-    if (nargs > 0)
+      f = __go_figure__ (f, varargin{:});
+    elseif (nargs > 0)
       set (f, varargin{:});
     endif
     set (0, "currentfigure", f);