Re: [ROOT] Axis title in TF1

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 13 2003 - 15:04:58 MET


Hi,

an example:

void f1axis() {
   TCanvas *c1 = new TCanvas("c1");
   TF1 *f1 = new TF1("f1","gaus",-3,3);
   f1->SetParameters(1,0,1);
   f1->Draw();
   f1->GetHistogram()->GetYaxis()->SetTitle("your title along Y");
   f1->GetHistogram()->GetXaxis()->SetTitle("your title along X");
   c1->Modified();
}   

Rene Brun

On Mon, 13 Jan 2003, Takefumi Sora wrote:

> 
> Hi.
> 
> We can draw axis title in TH class or TGraph easily. But
> as far as I examined TF1 class, I can not find a method 
> to set axis title. And furthermore can't get x or y axis pointer
> from TF1 class method.
> 
> Is there any way to draw axis title in TF1 class object?
> 
> Takefumi SORA
> 



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