Re: [ROOT] Axis scale

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Oct 27 2001 - 08:56:54 MEST


Hi Frank,

Use TAxis::SetLimits. This works for 1,2,3-d histograms.
For example
  myhist.GetXaxis()->SetLimits(xmin,xmax)

Rene Brun

On Sat, 27 Oct 2001, Frank Simon wrote:

> Hi Rooters,
> 
> I want to do the following:
> 
> I have a histogram with some fits drawn, and now I just want to
> change the axis range (without changing the look of the histogram).
> 
> To be precise: The histo is in ADC channel units, and after the
> fits, I can calculate the absolute units (keV). Now, I want to
> change the x-axis accordingly, without changing the histo otherwise.
> 
> Ideas?
> 
> Thanks in advance...
> 
> Greetings
> 
> Frank
> 



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