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

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

[Octave-bug-tracker] [bug #60133] Setting 'position' property of the leg


From: Rik
Subject: [Octave-bug-tracker] [bug #60133] Setting 'position' property of the legend messes the plot
Date: Tue, 2 Mar 2021 17:05:33 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Update of bug #60133 (project octave):

                  Status:          Ready For Test => Confirmed              

    _______________________________________________________

Follow-up Comment #5:

I'm adding Pantxo who has worked on legend.m to the CC list for this report.

It should possible to set the position of the legend manually (by setting the
"position" property directly or by changing the "location" property to
"none").  This manual setting must not be overridden by automatic placement
routines.

Either the listeners on the original axes have to be removed when "location"
is "none" and then re-instated if the automatic placement routines are
invoked.  Or, the callback routines need to check the "location" property is
not "none" before proceeding.  The calls to addlistener begin at line 318 of
legend.m


    add_safe_listener (hl, hax, "position", {@maybe_update_layout_cb, hl});
    add_safe_listener (hl, hax, "tightinset", ...
                       @(h, ~) update_layout_cb (get (h,
"__legend_handle__")));




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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