Re: [ROOT] Histogram with label

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Dec 03 2002 - 11:46:09 MET


Hi Giuseppe,

Histograms with alphanumeric labels are only supported by ROOT version
3.03/09. We give many examples in the tutorials (cernstaff.C, labels1.C,
labels2.C, etc).
To get the label for a given bin, do
   h->GetXaxis()->getBinLabel(bin);

Rene Brun

On Tue, 3 Dec 2002, [iso-8859-1] giuseppe.foggi@libero.it wrote:

> Hi,
>  
>  Can I  get the label of a histogram?
>  
>  In other word,  my histogram (TH1F) has the axis with string. Can I get
>  the string in a generic bin k ?
>  
>  The version of my ROOT is 3.02/07
>  Thank you.
>  
>  Giuseppe. 
>  
> 



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