Question about two histograms on the same canvas

Hi,
I am working on a project which asks me to draw two histograms on the same canvas. I successfully did that by using the draw option, “Draw(“same”)”. However, the canvas only shows the “TPaveStats:: stats” object of only one of the histogram. (a small box section on the top right corner of the screen that includes the name of the graph, the mean, and the RMS) Hence, I just wonder are there any other commands that I can use to let the canvas show the “TPaveSTats:: stats” object of the other histogram?
Thanks!

Hello,

You should use “sames” (note the “s” at the end) as option when you draw the second histogram instead of just “same”.

Cheers,

Chiara

HI,
I get it.
Thanks you so much!

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