Re: [ROOT] Cramped Axis Labels

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Fri Mar 28 2003 - 09:47:05 MET


Hi Carl,

 You can change the canvas' Left and Bottom margins. The following macro 
gives an example:

{
     TCanvas *c1 = new TCanvas("c1","Test",0,0,600,600);
     c1->SetLeftMargin(0.25);    
     c1->SetBottomMargin(0.25);
     fun1 = new TF1("fun1","sin(x)",0,6.28);
     fun1->Draw();    
}

 Cheers,          Olivier


On Thu, 27 Mar 2003, Carl Gwilliam wrote:

> Hi,
> 
> When I put axis labels on my histograms they overlap the tick numbers on
> the axis.  If I then use
> 
>     histo[i]->SetTitleOffset(1.5,"X");
>     histo[i]->SetTitleOffset(1.5,"Y");
> 
> to move the labels further out they go off the pad.  Is there any way of
> getting round this problem such as making the size of the histogram within
> the pad smaller in order to give move space?
> 
> Cheers,
> 
> Carl
> 
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



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