Text option and formatting in 2D histograms

Hi ROOTERS

I have a TH2D histogramm and I would like to plot its values using “text” option (h->Draw(“text”)). Is there a simple way to format the values displayed in each cell (number of significant figures, scientific or not…)?

Thanks

use gStyle->SetPaintTextFormat

Rene

Thanks René, it works fine

All the details about the TEXT option are here:
root.cern.ch/root/html/THistPainter.html#HP15