# HG changeset patch # User Jaroslav Hajek # Date 1237990188 -3600 # Node ID c2bfc6440e181d7a92a921f0593b1410e6d73811 # Parent 0d7e145c1ca4b07c7c9d974ae59762acc37a10bd one more fix from M. Caliari diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-03-25 Jaroslav Hajek + + * plot/clf.m: Fix due to M. Caliari. + 2009-02-24 Rob Mahurin * plot/legend.m: Fix legend order. Add explicit colors to demos. diff --git a/scripts/plot/clf.m b/scripts/plot/clf.m --- a/scripts/plot/clf.m +++ b/scripts/plot/clf.m @@ -71,7 +71,11 @@ hc = get (hfig, "children"); endif + set (hfig, "currentaxes", []); ## Delete the children. - delete (hc); - + for k = get (hfig, "children") + if (ishandle (k)) + delete (k); + endif + endfor endfunction