[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not worki
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects |
Date: |
Tue, 22 Oct 2013 18:39:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 |
Follow-up Comment #7, bug #39813 (project octave):
For your test: only "ishandle (li0)" returns false.
The rule I could draw is:
- if hgsave is an axes: children are deleted, brothers preserved
- else: all the ancestor axes' children are deleted except the oldest
(gran)parent of hgsave with all its descendance (including hgsave's
(gran)uncles and brothers).
See the result of the following test
hf = figure (1234), clf;
li = [];
hg = [];
hax = axes (); hold on;
levels = 6;
for ii = 1:levels
if ii == 1
hg(ii) = hggroup ();
li(ii) = line (1:10, 1:10);
else
hg(ii) = hggroup ('parent', hg(ii-1));
li(ii) = line (1:10, 1:10, 'parent', hg(ii-1));
end
end
uncles = li(1:end-1);
brother = hg(end);
hold off;
newplot (li(end))
ishandle(uncles)
ishandle(brother)
### result
ans =
0 1 1 1 1
ans =
1
This is also what we currently obtain in octave with the most recent
changesets you pushed.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39813>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects, Rik, 2013/10/09
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects, Rik, 2013/10/09
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects, Rik, 2013/10/17
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects, Rik, 2013/10/22
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #39813] rectangle(..., 'Parent', hg) not working for group objects, Rik, 2013/10/22