Drawing TH2F with "text0" option -> empty histogram

Hi,

I am running this code to make a TH2F histogram:

for xbin in range(1, bkgHist.GetNbinsX()+1):
   bkgHistY = bkgHist.ProjectionY("",xbin, bkgHist.GetNbinsX()+1)
   sigHistY = sigHist.ProjectionY("",xbin, bkgHist.GetNbinsX()+1)
   for ybin in range(1, bkgHist.GetNbinsY()+1):
      nBkgs = bkgHistY.Integral(ybin, bkgHist.GetNbinsY()+1)
      nSigs = sigHistY.Integral(ybin, bkgHist.GetNbinsY()+1)
      xcenter = bkgHist.GetXaxis().GetBinCenter(xbin)
      ycenter = bkgHist.GetYaxis().GetBinCenter(ybin)
      significanceHist.Fill(xcenter,ycenter,significance(nSigs,nBkgs))

canvas = Canvas(width=1050, height=750)
ROOT.gStyle.SetPaintTextFormat("4.1f")
significanceHist.SetMarkerSize(1.8)
significanceHist.Draw("text0")
#legend.Draw()
canvas.Print("%s/%s_%s_lowerCut.pdf" % (args.outputDir,regName,varName), "pdf")

The problem is that if i use significanceHist.Draw(“colz”) or significanceHist.Draw() options, i get the output color/scatter histogram. But if i use the “text0” option, the histogram is empty.

Does anyone have a clue of what is wrong here?

Thanks.

I cannot reproduce it.
Do you have a small script, I can run, reproducing this issue ?