|
From: | Ben Abbott |
Subject: | Re: h = gca; delete(h); h==gca -> ans=1 |
Date: | Wed, 22 Oct 2008 20:34:48 -0400 |
On Oct 22, 2008, at 6:50 PM, Ben Abbott wrote:
On Oct 22, 2008, at 2:59 PM, John W. Eaton wrote:On 22-Oct-2008, Ben Abbott wrote:| While this could be fixed in gca.m I'm sure it is better to take care of it at a lower level.| | octave:102> plot(1:10) | octave:103> gca | ans = -21.032 | octave:104> delete(gca) | octave:105> gca | ans = -21.032 I think the following changeset fixes this problem. Thanks, jweThanks, that works. However, octave:8> h = gcf; delete(h); h==gcf ans = 1
It occurred to me that this may be because handles are being recycled. octave:13> h = gcf; octave:14> delete(h) octave:15> get(0,'currentfigure') ans = [](0x0) ... and it is. So all looks correct here. Ben
[Prev in Thread] | Current Thread | [Next in Thread] |