Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

[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 



  • Prev by Date: StackGraphics missing in Mathematica 6?
  • Next by Date: Re: Plot[], Show[] and ; in Version 6
  • Previous by thread: Re: StackGraphics missing in Mathematica 6?
  • Next by thread: RE: [Mathematica 6] How to add legend to ListLinePlot?