Re: histogram zoom in batch

Rene Brun (Rene.Brun@cern.ch)
Wed, 28 Oct 1998 11:06:01 +0100


Alberto Baldisseri wrote:
>
> Hi rooters,
>
> To do an histogram zoom in the interactive mode is very easy
> clicking on the histogram and displaying the DrawPanel.
> Anybody know how to do this in batch mode ? Which method
> I have to call ? I don't find any on TH1 class.
>

Alberto,
In a macro, you can select the bins range for the X, Y or Z axis
via TAxis::SetRange.
For example, for a 1-D histogram h
Root > h->GetXaxis()->SetRange(34,67);
Root > h->Draw();

Rene Brun