Multiple Histos with Stat.boxes

Hi,
little question:
is there a possibility to get multiple statistic boxes inside one TCanvas?
If I try this code:

TCanvas* c = new TCanvas();
c->cd();
histo1->Draw();
histo2->Draw(“SAME”);
histo3->Draw(“SAME”);
histo4->Draw(“SAME”);

I only get the statistic box of histo1 but I’d also like to have the others too.
Thanks in advance,
Best wishes,
Christoph

Search for “SAMES” in the THistPainter class description.
See also:
[url]How to move statistics box when using Draw(“sames”
[url]Print in Graph Legend fit parameters
[url]Cannot print Stats correctly
http://root.cern.ch/root/html/tutorials/hist/transpad.C.html

1 Like

Thanks, that was exactly what I needed!!