I want to plot two 2D-histograms with TH1::Draw(“text”) call and with different text formats. So I do something like this:
c1 = ROOT.TCanvas() ROOT.gStyle.SetPaintTextFormat('4.2f') h_lum.Draw('text') c1.Draw() c1.Update() c2 = ROOT.TCanvas() ROOT.gStyle.SetPaintTextFormat('+2.0f') h_lum2.Draw('text') c2.Draw() c2.Update()
The problems is that my both histograms have the same text format for printing the numbers - (’+2.0f’). How can I have different text formats for my histograms?
Thanks in advance,