Re: [ROOT] TCanvas and axis title

From: Jiri Masik (Jiri.Masik@cern.ch)
Date: Tue Aug 05 2003 - 16:03:05 MEST


Benoit Revenu <revenu@iap.fr> writes:

> Dear rooters,
> 
> what should I do to get something like :
> 
> canvas->SetXaxisTile("x");
> canvas->SetYaxisTile("y");
> canvas->DrawFrame(x0,y0,x1,y1);
> 

Hi,

try this:
root [0] TCanvas c1                  
root [1] h =c1.DrawFrame(0.,0.,1.,1.)
root [2] h->SetXTitle("x")           
root [3] c1.Modified()               

cheers
-- 
	Jiri



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