[Top][All Lists]

[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


                 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



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:


[AX,H1,H2]=plotyy([0 2*pi],[0 0], [0 2*pi],[0 0]);
hold on
plot(x,1.1*sine,'parent',AX(2),'g:','linewidth',1); % just to use the right
axis for something


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

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:

Date: Tue 19 Dec 2017 09:53:26 PM UTC  Name: east.png  Size: 146KiB   By: None



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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