Re: [ROOT] TAxis::GetBinLabel

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 24 2004 - 22:58:24 MET


GetBinlabel will return the label stored via SetBinLabel.
If you have no label, the function will return an empty string

Rene Brun

On Tue, 24 
Feb 
2004, Carlos Muņoz Camacho wrote:

> 
> Hi,
> 
>    Why doesn't TAxis::GetBinLabel(Int_t bin) work ? How can we access the
> labels of an axis ?
> 
> Example :
> 
> {
> TH1F *h=new TH1F("h","My histo",100,0,1);
> h->FillRandom("gaus",10000);
> h->Draw();
> TString label=h->GetXaxis()->GetBinLabel(100);
> cout<<label.Data()<<endl;
> }
> 
> ROOT Version   3.10/02
> 
> 
> Thanks !
> 
> 
> Carlos
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET