[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Changeset]: Re: cla() ?
From: |
John W. Eaton |
Subject: |
Re: [Changeset]: Re: cla() ? |
Date: |
Fri, 10 Oct 2008 11:34:07 -0400 |
On 10-Oct-2008, Ben Abbott wrote:
|
| On Oct 10, 2008, at 7:44 AM, Michael Goffioul wrote:
|
| > On Fri, Oct 10, 2008 at 1:40 PM, Ben Abbott <address@hidden> wrote:
| >> It does not appear that __go_delete__ does the job properly either.
| >>
| >> octave-3.1.51+:1> figure(1)
| >> octave-3.1.51+:2> axis
| >> ans =
| >> 0 1 0 1 0 1
| >> octave-3.1.51+:3> gca
| >> ans = -1.3284
| >> octave-3.1.51+:4> delete(gca)
| >> octave-3.1.51+:5> get(gcf,'currentaxes')
| >> ans = -1.3284
| >
| > That's not the problem. __go_delete__ should just make
| > sure that get(gcf,'children') does not contain the axes
| > handle anymore. In the case above, the figure object should
| > catch the child removal and update currentaxes accordingly.
| > In practice, figure::properties::remove_child overload is
| > missing.
| >
| > Michael.
|
| ok!
|
| From my naive position that looks like a simple change. Might someone
| take care of that?
I would, but I don't know precisely what the
figure::properties::remove_child function should do. I assume it
would be something like
void
figure::properties::remove_child (const graphics_handle& h)
{
if (h.ok () && h == currentaxes.handle_value ())
xset (0, "currentaxes", ???);
base_properties::remove_child (h);
}
but I don't know how to determine which axes should become the new
currentaxes.
jwe
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), (continued)
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), Michael Goffioul, 2008/10/08
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), Ben Abbott, 2008/10/08
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), John W. Eaton, 2008/10/08
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), Michael Goffioul, 2008/10/08
- Re: Strange handle behavior (was Re: [Changeset]: Re: cla() ?), John W. Eaton, 2008/10/08
- Re: [Changeset]: Re: cla() ?, John W. Eaton, 2008/10/08
- Re: [Changeset]: Re: cla() ?, Michael Goffioul, 2008/10/10
- Re: [Changeset]: Re: cla() ?, Ben Abbott, 2008/10/10
- Re: [Changeset]: Re: cla() ?, Michael Goffioul, 2008/10/10
- Re: [Changeset]: Re: cla() ?, Ben Abbott, 2008/10/10
- Re: [Changeset]: Re: cla() ?,
John W. Eaton <=
- Re: [Changeset]: Re: cla() ?, Ben Abbott, 2008/10/10
- Re: [Changeset]: Re: cla() ?, John W. Eaton, 2008/10/10
- Re: [Changeset]: Re: cla() ?, Michael Goffioul, 2008/10/10
- Re: [Changeset]: Re: cla() ?, John W. Eaton, 2008/10/10
- Re: [Changeset]: Re: cla() ?, Ben Abbott, 2008/10/07
- Re: [Changeset]: Re: cla() ?, David Bateman, 2008/10/07