Fill only 90% of an histogram

Hello. Do you know how to fill only 90% of an histogram’s area?

What is 100%? I don’t understand the question.

I am considering that when we calculate the area of an histogram in its range (from Xi -> Xf) we have 100% of the area, but I want to fill only 90% of this area (Xi -> X’) the area below Xi -> Xf is 90% of the total area.

So you have a first histogram and you want a second one that has 90% of its entries? Then do

TH1* second = (TH1*)first->Clone("second");

Cheers, Axel.

1 Like

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