Re: [ROOT] Axis title setting

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 17 2003 - 16:28:23 MET


Ben,

Your comments apply to old versions only. In the version 3.05/03,
I implemented TF1::GetXaxis, GetYaxis and canvas->Modified is not required
anymore.

Rene Brun

Ben Morgan wrote:
> 
> Ooops, I made a mistake, I should have remembered that this only works if
> the function has already been drawn...
> 
> TF2 *ex = new TF2(........);
> ex->Draw();
> ex->GetHistogram()->GetXaxis()->SetTitle("x");
> ex->GetHistogram()->GetYaxis()->SetTitle("y");
> 
> Then you just need to update the canvas (canvas->Modified() does the
> job) in which you've drawn the TF2...
> Apologies for the mistake...
> 
> Ben.
> 
> --
> -------------------------------------------------------------------------------
> Mr. Ben Morgan                               Tel: 44 (0)114 22 23553 (Work)
> Postgraduate Student
> University of Sheffield
> Department of Physics & Astronomy
> Hicks Building
> Hounsfield Road
> Sheffield  S3 7RH
> -------------------------------------------------------------------------------



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