changeset 11941:c2bfc6440e18
release-3-0-x
one more fix from M. Caliari
author |
Jaroslav Hajek <highegg@gmail.com> |
date |
Wed, 25 Mar 2009 15:09:48 +0100 |
parents |
0d7e145c1ca4 |
children |
0eaaf7351ef5 |
files |
scripts/ChangeLog scripts/plot/clf.m |
diffstat |
2 files changed, 10 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-25 Jaroslav Hajek <highegg@gmail.com>
+
+ * plot/clf.m: Fix due to M. Caliari.
+
2009-02-24 Rob Mahurin <rob@utk.edu>
* plot/legend.m: Fix legend order. Add explicit colors to demos.
--- 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