octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #44409] Reparenting the current axes under an


From: Rik
Subject: [Octave-bug-tracker] [bug #44409] Reparenting the current axes under an uipanel makes it not current
Date: Tue, 14 Aug 2018 15:21:38 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Update of bug #44409 (project octave):

              Item Group:        Incorrect Result => Matlab Compatibility   
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

I just tested with the development branch of Octave and this issue is still
present.  I've marked the bug as confirmed and changed the Item Group to
"Matlab Compatibility".

Frankly, Matlab's scheme is a little odd, but here is the annotated behavior.


clf;                        # creates new figure, "currentaxes" = []
hu = uipanel ();            # gcf "children" = hu
hax = gca ();               # gcf "children" = [hax; hu], "currentaxes" = hax

set (hax, "parent", hu);    # gcf "children" = hu, "currentaxes" = []
gca () == hax               # call to gca() creates new axes because
"currentaxes" is [].


The reparenting operation would need to be changed not to delete the
"currentaxes" property.  However, it would also have to be smart enough to
understand when an axes is re-parented to another figure or a uipanel of
another figure, in which case "currentaxes" does become [].  Oy, that's
starting to seem cumbersome to implement. 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44409>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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