Re: Mathematica 6.0 - Legend
- To: mathgroup at smc.vnet.net
- Subject: [mg76115] Re: Mathematica 6.0 - Legend
- From: dh <dh at metrohm.ch>
- Date: Wed, 16 May 2007 05:39:08 -0400 (EDT)
- References: <f23p9k$ngj$1@smc.vnet.net>
Hello Robert, I do not blame you having problems, the documentation for ShowLegend is really horrible. Here is an example, assuming your graphics with 2 curves is in g: ShowLegend[g,{{{Red,"asas"},{Blue,"qwqw"}},LegendPosition->{1,0} }] hope this helps, Daniel Robert Pigeon wrote: > Needs["PlotLegends`"] >a = Table[{i,i^2},{i,1,20}]; >b = Table[{i,i^3},{i,1,20}]; >ListLinePlot[a, PlotStyle -> {Red}] > >(* I get a nice graph of my data *) > >(* Here I would like to put a Legend showing the color and name of the plot *) > >ShowLegend[ > ListLinePlot[a, PlotStyle->{Red}], > Legend[{Red,"Line a"}] >] <And it does NOT work.... I get the following as output > > > > Robert > > > > Robert Pigeon >