changeset 17134:1f2c232feaff

figure.m: Don't initialize figure to 1 as it may already exist as hidden figure. * scripts/plot/gcf.m: Call figure() without arguments to generate a new auto-numbered figure.
author Rik <rik@octave.org>
date Wed, 31 Jul 2013 21:54:06 -0700
parents fd9a8b1a8768
children 9d9fe4361870
files scripts/plot/gcf.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/gcf.m
+++ b/scripts/plot/gcf.m
@@ -34,7 +34,7 @@
 ## @noindent
 ## plots a sine wave, finds the handle of the current figure, and then
 ## makes that figure invisible.  Setting the visible property of the
-## figure to @code{"on"} will cause it to be displayed again.
+## figure to "on" will cause it to be displayed again.
 ## @seealso{gca, gco, gcbf, gcbo, get, set}
 ## @end deftypefn
 
@@ -47,7 +47,7 @@
     if (isempty (h) || h == 0)
       ## We only have a root figure object, so create a new figure
       ## object and make it the current figure.
-      h = figure (1);
+      h = figure ();
     endif
   else
     print_usage ();