Decimal precision with "TEXT" drawing option

Hello,

I am painting a TH1 with “text” option. The histogram is normalized to unity.

I’d like to ask if it is possible to set the decimal precision (as in iomanip) of the per-bin displayed text ? i.e, I’d like to change to number of digits shown after the decimal point…

Thanks and regards,
Sergio

Ups… stupid me it was already very well documented:

gStyle->SetPaintTextFormat(“4.1f”);

Sorry for the noise !

2 Likes