[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50497] plotyy() legend in reverse order
From: |
Ray Zimmerman |
Subject: |
[Octave-bug-tracker] [bug #50497] plotyy() legend in reverse order |
Date: |
Wed, 8 Mar 2017 14:29:30 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8 |
URL:
<http://savannah.gnu.org/bugs/?50497>
Summary: plotyy() legend in reverse order
Project: GNU Octave
Submitted by: rdzman
Submitted on: Wed 08 Mar 2017 07:29:29 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Ray Zimmerman
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0
Operating System: Any
_______________________________________________________
Details:
When using plotyy(), the legend assigns the wrong labels to the data series,
in particular, they are in the reverse order, with the first label being
assigned to the last data series, etc.
The following plots illustrate the problem ...
figure
plot([1;2], [1 2 3 4; 2 3 4 5]);
legend('One', 'Two', 'Three', 'Four')
figure
plotyy([1;2], [1 2 3 4; 2 3 4 5], [1;2], [-1; -5]);
legend('One', 'Two', 'Three', 'Four')
In Matlab, the second plot will look like the first (except for the additional
line on the secondary axis) and the legend will also be identical. In Octave,
the legend labels all 4 lines incorrectly (reverse order), and incidentally,
also uses a different color (red) from that used by Matlab (green).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 08 Mar 2017 07:29:29 PM UTC Name: Octave-plot.pdf Size: 3kB By:
rdzman
Plots created with Octave 4.2.0, Matlab R2016a on Windows 7.
<http://savannah.gnu.org/bugs/download.php?file_id=39946>
-------------------------------------------------------
Date: Wed 08 Mar 2017 07:29:29 PM UTC Name: Matlab-plot.pdf Size: 2kB By:
rdzman
Plots created with Octave 4.2.0, Matlab R2016a on Windows 7.
<http://savannah.gnu.org/bugs/download.php?file_id=39947>
-------------------------------------------------------
Date: Wed 08 Mar 2017 07:29:29 PM UTC Name: Octave-plotyy.pdf Size: 3kB
By: rdzman
Plots created with Octave 4.2.0, Matlab R2016a on Windows 7.
<http://savannah.gnu.org/bugs/download.php?file_id=39948>
-------------------------------------------------------
Date: Wed 08 Mar 2017 07:29:29 PM UTC Name: Matlab-plotyy.pdf Size: 2kB
By: rdzman
Plots created with Octave 4.2.0, Matlab R2016a on Windows 7.
<http://savannah.gnu.org/bugs/download.php?file_id=39949>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50497>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50497] plotyy() legend in reverse order,
Ray Zimmerman <=