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

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

[Octave-bug-tracker] [bug #49382] legend position inaccurate with subplo


From: Hartmut
Subject: [Octave-bug-tracker] [bug #49382] legend position inaccurate with subplots
Date: Tue, 18 Oct 2016 18:46:38 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

URL:
  <http://savannah.gnu.org/bugs/?49382>

                 Summary: legend position inaccurate with subplots
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Tue 18 Oct 2016 06:46:36 PM GMT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0-rc2
        Operating System: Any

    _______________________________________________________

Details:

Here is a little script to show the behavior:

clear, close all
graphics_toolkit qt

figure
subplot(2,1,1);
plot(1:5)
legend('legend text at wrong position (too high)');
% if you stop the script here, via a "break" command, then it will be fine
subplot(2,1,2);
plot(1:5)
legend('legend text at proper position');


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.






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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