[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly h
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects |
Date: |
Mon, 15 Jul 2013 22:13:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 |
Follow-up Comment #2, bug #39483 (project octave):
In the example below "ax" handle is not visible and not the current axes as
expected :
fig = figure (2345); clf
ax = axes ('parent', fig, 'handlevisibility', 'off');
get (gcf, "currentaxes")
Then, when "gca ()" is called in line.m (also text.m, image.m ...) a new axes
is created.
Most plot functions (not line, but it probably could) use
__plt_get_axis_arg__.m to parse input arguments and retrieve parent axes. The
attached patch adds a search for "parent" property in __plt_get_axis_arg__.m.
If present the prop/val pair is removed and the righ parent axes is returned.
It works for hggroup where no call to "gca ()" is done:
fig = figure (2345); clf
ax = axes ('parent', fig, 'handlevisibility', 'off');
hg = hggroup ('parent', ax);
disp (sprintf ('Figure children list should be empty, result: '))
disp (get (fig, 'children'))
returns the empty matrix as expected. I think using this patch and replacing
the calls to "gca ()" by "get (fig, "currentaxes")" in the various line,
text... functions should work. Should I go ahead ?
(file #28589)
_______________________________________________________
Additional Item Attachment:
File name: parse_plt_propval.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39483>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/14
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/14
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Rik, 2013/07/17
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/17
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/18
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Rik, 2013/07/19
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/19
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Rik, 2013/07/19
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/19
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/21
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Rik, 2013/07/21
- [Octave-bug-tracker] [bug #39483] axes "handlevisibility" not properly handled with new children objects, Pantxo Diribarne, 2013/07/21