Adding stats box to legend

Is it possible to put stat box info in the legend? instead of having them in two separate boxes?

That’s some dark magic you’re trying to do, Lord V :slight_smile:
If you look at the documentation and member functions of TLegend, you can add a title (SetHeader) and entries (SetEntry).
You could get the statistics information (for histograms, for example, see TH1 and scroll down to " Miscellaneous operations"), and add them as entries manually (see the example where pure text is added, passing a null pointer to AddEntry).


Thank you, thank you! I shall give that a try :slight_smile: