How to make custom legends including text with "f" option

Hi

How would it possible while using the “f” option in the leged, to put some custom text inside the box ? ie like in the first example as shown here https://root.cern.ch/doc/master/classTLegend.html to put some text inside the green box in the legend (like a ratio or entries of histo)

Thanks

TLegend does not offer this interface. You will need to draw a text on top using TText or TLatex.

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