Multiple Histo's on one Canvas

If I draw two histograms on the same canvas, the latter using h2->Draw(“SAMEHIST”), how can I keep info about mean, RMS, and no. entries for both histograms on the top right of the canvas?
Do I have to manually fetch those values myself and then use some labelling/formatting of the canvas?



I found the TLegend class. I’ll do it manually.

If there’s a shorter way, my ears are still open.

Use draw option “sames”, ie in your case "sames hist"
see the section “Statistics Display” of THistPainter::Paint at … nter:Paint


That’s great. Thank you! =)