Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Mathematica 6.0 - Legend

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89806] Re: Mathematica 6.0 - Legend
  • From: SergeM <serge.maillard at cea.fr>
  • Date: Sat, 21 Jun 2008 05:29:34 -0400 (EDT)

Dear Daniel,
I used the solutions you indicated to Robert. Actually, in my version (Mathematica 4), it prints a red square and a blue one, not lines. Do you know how I can specify hte kind of lines that I want ?
Thanks for help if you kwnow how to do.

Serge

> 
> 
> 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"}},LegendPosit
> ion->{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
> 
> > 
> 
> 
>


  • Prev by Date: Re: solving for 2 angles
  • Next by Date: Re: solving for 2 angles
  • Previous by thread: Re: Looking for an example
  • Next by thread: Insight into Solve...