changeset 6410:8522b107e4ae

[project @ 2007-03-14 22:03:08 by jwe]
author jwe
date Wed, 14 Mar 2007 22:03:08 +0000
parents 3483cce84528
children 2f64090cdc14
files scripts/ChangeLog scripts/plot/clf.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed Mar 14 20:50:10 2007 +0000
+++ b/scripts/ChangeLog	Wed Mar 14 22:03:08 2007 +0000
@@ -1,5 +1,7 @@
 2007-03-14  John W. Eaton  <jwe@octave.org>
 
+	* plot/clf.m: Set currentaxes property for current figure to [].
+
 	* plot/__axis_label__.m: Convert arg to text handle before calling set.
 
 	* plot/__plt__.m: Return line handles from all calls to __plt1__
--- a/scripts/plot/clf.m	Wed Mar 14 20:50:10 2007 +0000
+++ b/scripts/plot/clf.m	Wed Mar 14 22:03:08 2007 +0000
@@ -27,7 +27,9 @@
 function clf ()
 
   if (nargin == 0)
-    for k = get (gcf (), "children")
+    cf = gcf ();
+    set (cf, "currentaxes", []);
+    for k = get (cf, "children")
       delete (k);
     endfor
     drawnow ();