[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52700] plotyy legend in reverse order
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #52700] plotyy legend in reverse order |
Date: |
Tue, 19 Dec 2017 16:53:27 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 |
URL:
<http://savannah.gnu.org/bugs/?52700>
Summary: plotyy legend in reverse order
Project: GNU Octave
Submitted by: None
Submitted on: Tue 19 Dec 2017 09:53:26 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Blindcurrent
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
A legend added to a plot created with the plotyy command comes out wrong when
it is located in the northeast. In this one location, the order of the
plotstyle entries (not the string labels) is reversed.
Please see this example code together with the attached figures:
x=0:.01:2*pi;
sine=sin(x);
cosine=cos(x);
figure
[AX,H1,H2]=plotyy([0 2*pi],[0 0], [0 2*pi],[0 0]);
hold on
plot(x,sine,'parent',AX(1),'b','linewidth',2);
plot(x,cosine,'parent',AX(1),'r','linewidth',2);
plot(x,1.1*sine,'parent',AX(2),'g:','linewidth',1); % just to use the right
axis for something
leg=legend(AX(1),'sine','cosine');
set(leg,'location','northeast');
The legend is correct in all locations other than northeast, including all the
outside versions.
I am using Windows 7 and have installed Octave using the w64 installer. I have
found the issue to occur in the versions 4.2.0 and 4.2.1.
This bug may be related to https://savannah.gnu.org/bugs/?50497 or
https://savannah.gnu.org/bugs/?35314, but neither of these covers the location
dependence.
Final note: I do not need a patch, because applying it is beyond my expertise.
I am only reporting it so that it can be fixed in a future version of Octave.
In the meantime, my workaround is to plot the graphs in reverse order so that
the legend comes out right.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 19 Dec 2017 09:53:26 PM UTC Name: northeast.png Size: 146KiB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=42686>
-------------------------------------------------------
Date: Tue 19 Dec 2017 09:53:26 PM UTC Name: east.png Size: 146KiB By: None
<http://savannah.gnu.org/bugs/download.php?file_id=42687>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52700>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52700] plotyy legend in reverse order,
anonymous <=