[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58492] Setting DataAspectRatio moves legend o
From: |
A.R. Burgers |
Subject: |
[Octave-bug-tracker] [bug #58492] Setting DataAspectRatio moves legend out of axes |
Date: |
Wed, 3 Jun 2020 10:33:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763 |
URL:
<https://savannah.gnu.org/bugs/?58492>
Summary: Setting DataAspectRatio moves legend out of axes
Project: GNU Octave
Submitted by: arb
Submitted on: Wed 03 Jun 2020 02:33:04 PM UTC
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.0.90
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
This script (also attached) produces a plot (png attached) with the legend
outside the axes:
if exist ('OCTAVE_VERSION', 'builtin');
graphics_toolkit gnuplot;
graphics_toolkit qt;
end
np = 11;
x = linspace(0, 10, np);
y = x + 1;
plot(x, y);
legend({'tst'}, 'location', 'northwest');
set(gca, 'DataAspectRatio', [1 1 1]);
print('DataAspectRatio_legend.png', '-dpng');
pause
With the DataAspectRatio setting omitted, or with the gnuplot toolkit the
legend is shown inside the axes. This is the case with octave 5.x, 6.x and
7.x.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 03 Jun 2020 02:33:04 PM UTC Name: DataAspectRatio_legend.png Size:
14KiB By: arb
<http://savannah.gnu.org/bugs/download.php?file_id=49206>
-------------------------------------------------------
Date: Wed 03 Jun 2020 02:33:04 PM UTC Name: DataAspectRatio_legend.m Size:
284B By: arb
<http://savannah.gnu.org/bugs/download.php?file_id=49207>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58492>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58492] Setting DataAspectRatio moves legend out of axes,
A.R. Burgers <=