Re: plot of histogram subrange
Rene Brun (Rene.Brun@cern.ch)
Wed, 26 Aug 1998 10:08:06 +0200
Nikolai Yu. Zaitsev wrote:
>
> Hello,
>
> Probably the question was asked 1000 times but I could not find the
> answer. In PAW there is one nice feature to plot the histogram
>
> h/pl 1(10:20) from bin 10 to 20
> or
> h/pl 1(10.:20.) from x=10. to x=20.
>
> Is there any similar method (option) for TH1?
>
> Thanks in advance, Nikolai.
In addition to the DrawPanel facility indicated by Nick,
you can also do the following:
h->GetXaxis()->SetRange(binmin,binmax);
and your histogram h will be automatically drawn in the specified
range. This works for 1-d, 2-d, 3-d and TProfile histograms.
Rene Brun