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: Mon, 1 Mar 2021 16:32:15 -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:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

Confirmed.

Something is definitely odd here, and I suspect that it is multiple
interacting bugs.

The first problem, the change in the size of the main axes, is caused by the
following sequence of events.  When the legend is originally specified, the
"location" property is set to "northoutside".  This tells Octave that the 
"position" property is to be managed automatically by Octave.  Octave
therefore changes the size of the original axes enough to accommodate a legend
object.  However, when you directly set the placement of the legend object
then Octave understands that you want manual control so it no longer manages
the size of the original axes.  In response, the original axes grows to take
up more of the available figure.  You can work around all this by using


set (gca, "positionconstraint", "innerposition")


which will change the logic on the original axes and it will no longer
resize.

However, there is still an issue with why setting the "position" property on
the legend object affects only one of the 4 values.

    _______________________________________________________

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]