Re: [ROOT] Axis scale

From: Frank Simon (fsimon@cipsuse2.t30.physik.tu-muenchen.de)
Date: Sat Oct 27 2001 - 13:04:50 MEST


Hi Rene,

is there a way to scale the fits (TF1) together with the histogram?

Greetings

Frank

On Sat, 27 Oct 2001, Rene Brun wrote:

> 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