octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more graphics changes.


From: John W. Eaton
Subject: Re: more graphics changes.
Date: Wed, 14 Mar 2007 17:57:34 -0400

On 14-Mar-2007, Søren Hauberg wrote:

| John W. Eaton skrev:
| > It would be helpful to me if people who have been using the new
| > graphics features could check that I haven't broken too many things.
| > Please report any problems that you find to this list.
| The following code fails for me:
| 
|    line(1:10, 1:10)
|    clf
|    line(1:10, 1:10)
| 
| with the following error:
| 
| error: __go_line__: invalid parent
| error: evaluating assignment expression near line 52, column 5
| error: called from `__line__' in file `/home/sh/__line__.m'
| error: evaluating assignment expression near line 35, column 7
| error: called from `line' in file 
| `/home/sh/Programmer/share/octave/2.9.9+/m/plot/line.m'

I think the following patch should fix this problem.

Thanks,

jwe


scripts/ChangeLog:

2007-03-14  John W. Eaton  <address@hidden>

        * plot/clf.m: Set currentaxes property for current figure to [].


Index: scripts/plot/clf.m
===================================================================
RCS file: /cvs/octave/scripts/plot/clf.m,v
retrieving revision 1.5
diff -u -u -r1.5 clf.m
--- scripts/plot/clf.m  14 Mar 2007 20:50:10 -0000      1.5
+++ scripts/plot/clf.m  14 Mar 2007 21:55:39 -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 ();

reply via email to

[Prev in Thread] Current Thread [Next in Thread]