[Mathematica 6] How to add legend to ListLinePlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg76488] [Mathematica 6] How to add legend to ListLinePlot?
- From: "Nasser Abbasi" <nma at 12000.org>
- Date: Wed, 23 May 2007 05:15:21 -0400 (EDT)
- Reply-to: "Nasser Abbasi" <nma at 12000.org>
Hello;
I am drawing few lists in one plot using ListLinePlot.
PlotLegend does not work with ListLinePlot. Any idea how can one add legend
to listLinePlot?
Needs["PlotLegends`"];
a = Table[RandomReal[], {10}];
b = Table[RandomReal[], {10}];
ListLinePlot[{a, b}] (*OK*)
ListLinePlot[{a, b}, PlotLegend -> {"a", "b"}] (*This is what I'd like to
do*)
thanks
Nasser
- Follow-Ups:
- RE: [Mathematica 6] How to add legend to ListLinePlot?
- From: Robert Pigeon <robert.pigeon@videotron.ca>
- RE: [Mathematica 6] How to add legend to ListLinePlot?