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

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

[Octave-bug-tracker] [bug #63051] legend modifies graphics objects stack


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #63051] legend modifies graphics objects stack
Date: Mon, 12 Sep 2022 09:04:02 -0400 (EDT)

Update of bug #63051 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

The problem is not the addition of the legend, which I could verify doesn't
touch the axes children stack. 
The red dot should be draw below the blue line right from the beginning since
it is a children of the hggroup which is supposed to be drawn first. The bug
is that until another child is added to the axes (what legend silently does),
the order in which graphics objects are drawn may be wrong. Here is a script
to demonstrate the issue:


clf; 
hold on;
h1 = hggroup ();
h2 = plot (1:3);
plot (2, 2,"or", "parent", h1, "markerfacecolor", "r", "markersize", 50)
h3 = plot (3:-1:1, "-g");


Before drawing h3, the red dot is above, while after it is below other
objects, as it should.

If you agree, I'll change the title to something like "Reparented graphics
objects may be drawn in wrong order"



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63051>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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