Re: [ROOT] Superimposing Histograms with different line styles

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 05 2002 - 17:09:42 MEST


Hi Kay,

Use TLegend. See examples in $ROOTSYS/tutorials/
FittingDemo.C
cernstaff.C
hbars.C

Rene Brun

On Wed, 5 Jun 2002, Kay Ulbrich wrote:

> Hello ROOTERs,
> 
> having superimposed a number of histograms using the
> "SAME" drawing option and having set a different line-style for each
> of these histograms, I would like to have each histogram's title drawn  
> in the plot next to a sample of the line style.
> 
> I could not find a prefab-function for that, which would avoid having
> to do awkward relocationg of title-boxes and drawing the lines
> "myself". Is there such a functionality somehow implemented?
> 
> Thanks for suggestions,
> Kay
> 
> -- 
> ======================================================================
> Kay Ulbrich                                 
> Institut fuer 
> Strahlen- und Kernphysik      
> der Universitaet Bonn                            Tel.: +49-228-73 1768
> Nussallee 14-16				         FAX:  +49-228-73 2505		
> D-53115 Bonn, Germany                 E-mail: ulbrich@iskp.uni-bonn.de
> ======================================================================
> 
> 
>   
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:55 MET