Rebin axis error?

Dear All,

I am playing with variable bin histograms.
I noticed when calling TH1:Rebin(ngroup = 2), that the X axis is changing.
Hum, it might be silly, but I would expect to keep the global range the same and just merged bins 2 by 2.
Is that an expected behavior ?

Before:

After:

Thank you !
Marco

The original histogram has 11 bins and 11/2 = 5.5 so its last bin will be forgotten (the new histogram has 5 bins).

1 Like

Thank you.
I just noticed by reading more carefully the doc.
Sorry about that!

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