# HG changeset patch # User jwe # Date 1173909788 0 # Node ID 8522b107e4ae908320b161589cf34e941c90d12b # Parent 3483cce84528067ebb493a56622b3ded2b1bf4ee [project @ 2007-03-14 22:03:08 by jwe] diff -r 3483cce84528 -r 8522b107e4ae scripts/ChangeLog --- 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 + * 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__ diff -r 3483cce84528 -r 8522b107e4ae scripts/plot/clf.m --- 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 ();