Re: [ROOT] Legends and markers

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 10 2003 - 08:52:27 MEST


Hi Peter,

Did you set the marker style in the objects "g1',"g2","g3","g4" referenced
by your legend?

Rene Brun

Peter H Fisher wrote:
> 
> >From fisherp@MIT.EDU Wed Jul  9 22:00:46 2003
> Date: Wed, 9 Jul 2003 22:00:10 -0400 (EDT)
> From: Peter H Fisher <fisherp@MIT.EDU>
> To: roottalk@MIT.EDU
> Subject: TLegend and markers
> 
> Dear Roottalk,
> 
> I am having a problem: when I make a legend using
> 
>       TLegend* l=new TLegend(0.6,0.7,0.85,0.9);
>       l->AddEntry("g1","Ar:CO_{2}(80:20)","p");
>       l->AddEntry("g2","Ar:CO_{2}(90:10)","p");
>       l->AddEntry("g3","Xe:CO_{2}(80:20)","p");
>       l->AddEntry("g4","Xe:CF_{4}(80:20)","p");
>       l->SetHeader("Gas");
>       l->Draw();
> 
> the same marker appears at each entry in the legend (i.e. all the markers
> are the same in the legend).  I am using marker numbers 1,2,3 and 4.  Am I
> doing something wrong?
> 
> Thanks, as always,
> 
> Peter
> 
> Peter Fisher
> Office 617-253-8561
> Professor of Physics                           Fax    617-253-4100
> 44-118 MIT                                     email  fisherp@mit.edu
> Cambridge, MA, 02139



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET