[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35314] legend () for plotyy ()
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #35314] legend () for plotyy () |
Date: |
Sun, 15 Jan 2012 19:20:42 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7 |
URL:
<http://savannah.gnu.org/bugs/?35314>
Summary: legend () for plotyy ()
Project: GNU Octave
Submitted by: bpabbott
Submitted on: Sun 15 Jan 2012 02:20:42 PM EST
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Ben Abbott
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35314>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35314] legend () for plotyy (),
Ben Abbott <=