Re: Limiting Y range in TGraph::Fit

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 19 Oct 2010 20:53:50 +0200


  Use TGraph::SetMaximum, SetMinimum

Rene Brun

On 19/10/2010 20:45, OKUMURA, Akira wrote:
> Hello ROOTers,
>
> Is there any simple way to limit the Y range in TGraph::Fit?
>
> The 4th and 5th arguments (rxmin, rxmax) in the regular TGraph::Fit method are used for the high/low limit of the X axis. But I would like to set rymin and rymax instead.
>
> Of course, I can do it manually by removing data points outside the range from a graph. But if there is a better solution which is already implemented, I would use it.
>
> Regards,
>
> --
> OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu}
> Institute of Space and Astronautical Science (ISAS/JAXA)
> Now at KIPAC/SLAC/Stanford
> Varian Physics #306, 382 Via Pueblo Mall, MC 4060
> Stanford, CA 94305-4060
> TEL 650-736-0971/FAX 650-724-5065
> Skype : okumura.akira
>
Received on Tue Oct 19 2010 - 20:53:56 CEST

This archive was generated by hypermail 2.2.0 : Tue Oct 19 2010 - 23:50:01 CEST