Display statistics while using THStack

Hello !

I have successfully merged a set of histograms(with the same scale) into one histogram using THStack::Add().

However, I could not get the statistics to show up in my graph.

Is there a way to display the statistics in THStack?
AND|OR; Is there another way to add multiple histograms into one histogram with the statistics displayed?

Thank you!

Welcome to the ROOT forum

THStack does not “merge” histogram. It is a container allowing you to draw several histograms in one go. But each histogram remains independent. Use TH1::Add to Add/Merge histograms together.

The TH1::Add worked as expected.

Best regards.

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