Re: [ROOT] Cramped Axis Labels

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Mon Mar 31 2003 - 11:28:21 MEST


To change the space between histograms you can use:

SetLeftMargin
SetRightMargin

 The same way you can change the Top margin too.

If this doesn't answer your question please set me a little example 
showing your problem.

 Cheers,       Olivier

On Mon, 31 Mar 2003, Carl Gwilliam wrote:

> Hi,
> 
> This doesn't seem to work.  What I have is a canvas split up into several
> pads and I then want more room/space between the histogram and the pad
> frame.
> 
> Cheers,
> 
> Carl
> 
> 
> 
> On Fri, 28 Mar 2003, Olivier Couet wrote:
> 
> >
> > 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