Search for the “SAMES” drawing option in the THistPainter class desciption.
See also:
[url]How to move statistics box when using Draw(“sames”
[url]Print in Graph Legend fit parameters
[url]Cannot print Stats correctly
${ROOTSYS}/tutorials/hist/transpad.C
Instead of using the “SAMES” option, you can also easily add the “mean” information to the “legend” -> see the ${ROOTSYS}/tutorials/fit/TestBinomial.C tutorial.