Re: [ROOT] How to move/resize a histogram in a canvas?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 29 2001 - 11:57:11 MET


Hi Andreas,

You can modify the distance between the axis and the title with, eg:
  hist->GetYaxis()->SetTitleOffset(val); with val = 1 by default

You can also increase the pad margin with
  mypad->SetLeftMargin(0.15); //15 per cent of pad width (default is 10 per cent

You can set these values permanent by using the setters in TStyle.

Rene Brun

Andreas Zoglauer wrote:
> 
> Hello,
> 
> I have a canvas where the y-axis title of the histogram is trucated by the
> canvas border.
> 
> If one scales the histogram down and moves it to the right with the mouse,
> the title moves back into the canvas.
> 
> But how can I do this move/resize of a histogram in the source code?
> What's the name of the function and in what class can I find it?
> 
> Thanks,
> Andreas
> 
> ----------------------------------------------------------------------
> Andreas Zoglauer
> 
> MPI fuer extraterrestrische Physik         Phone:    +49/89-30000-3848
> Postfach 1312                              Fax:      +49/89-30000-3569
> 85741 Garching, Germany                    Email:    zog@mpe.mpg.de
> ----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:10 MET