bugGNU Octave - Bugs: bug #35314, legend () for plotyy ()

 
 

bug #35314: legend () for plotyy ()

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sun 15 Jan 2012 07:20:42 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 17 Jan 2012 12:33:33 PM UTC, comment #2: 

I've pushed the changeset to the default branch.

http://hg.savannah.gnu.org/hgweb/octave/rev/57e3490094e1

I'm closing this bug report.

Ben Abbott <bpabbott>
Group Member
Mon 16 Jan 2012 01:07:12 AM UTC, comment #1: 

First attempt at a changeset

(file #24832)

Ben Abbott <bpabbott>
Group Member
Sun 15 Jan 2012 07:20:42 PM UTC, original submission:  

Starting with the commands below.

x1 = 0:5:10;
x2 = 0:10;
y1 = rand (size (x1));
y2 = rand (size (x2));
[ax, h1, h2] = plotyy (x1, y1, x2, y2, @plot, @plot);
y1Label = "y1";
y2Label = "y2";

The legend is specified as,

legend ([h1, h2], {y1Label, y2Label}, "location", "south")

The versions below should also work.

        legend ({y1Label, y2Label}, "location", "south")


        legend (y1Label, y2Label, "location", "south");

These second two have the legend entries reversed.

I haven' looked yet, but I suspect the axes handles are not ordered as we expect. Matlab should be checked to determine the proper ordering.

Ben Abbott <bpabbott>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24832:  changeset.patch added by bpabbott (1KiB - application/octet-stream - first changeset)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-17 bpabbott StatusReady For Test Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed
    2012-01-16 bpabbott StatusNone Ready For Test
    2012-01-16 bpabbott Attached File- Added changeset.patch, #24832

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code