TH1::Print(Option_t *option = "") change range option?

Hello all,

I have this very easy task to perform: search the first few bins of TH1. I am using 5.34/19, my question is that is it possible to use TH1::Print(“range”) command to only display e.g.: first 20 bins of the histogram? Is it possible to change the range?

Thanks

histo1D->GetXaxis()->SetRange(first_bin, last_bin); // e.g. (1, 20)
histo1D->Print("range");
1 Like

I thought I have to do something like …Print(“range=20”) or something, but thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.