bugGNU Octave - Bugs: bug #49382, legend position inaccurate with...

 
 

bug #49382: legend position inaccurate with subplots

Submitted by:  Hartmut <hardy>
Submitted on:  Tue 18 Oct 2016 06:46:36 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.0-rc2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 18 Oct 2016 08:26:38 PM UTC, comment #1:

This is a known issue, the legend position is not updated when its corresponding axes position changes. Subplot are dynamic objects which adapt their size depending on neighbor axes size: when the second subplot appears it forces the first one to be resized hence the wrong legend position. See bug #39697

Closing report as duplicate of the above.

Pantxo Diribarne <pantxo>
Project Member
Tue 18 Oct 2016 06:46:36 PM UTC, original submission:

Here is a little script to show the behavior:

The legend in the upper subplot is printed at a too high position. Depending on the screen resolution (or fontsize?) this is more or less obvious.

If you stop the script at the marked position (before creating the second subplot), then the legend position will stay correct.

This happens with graphics_toolkit qt as well as fltk. Gnuplot is fine in this respect.

This happens with Octave 4.0.3, and with Octave 4.2.0-rc2, on Linux and on Windows.

I wasn't sure if this is part of the behavior in bug #39697, that's why I opened a new bug report. I naively assume that NO listener would be necessary to fix this issue here, the subplot sizes should be known in advance.

Hartmut <hardy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by hardy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 18 Oct 2016 08:26:38 PM UTCpantxoStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #39697

    Back to the top


    Powered by Savane 3.1-cleanup1