root-project / jsroot

JavaScript ROOT
MIT License
187 stars 80 forks source link

bug: TProfile2D bins with entries but value 0 not being shown in COL draw option #316

Closed will-cern closed 3 months ago

will-cern commented 3 months ago

Hello,

I've noticed that JSROOT doesn't display the bins that have entries in a TProfile2D but where the value/content of the bin is 0. Here's a reproducer:

%jsroot on
p = ROOT.TProfile2D("p","p",10,0,10,10,0,10)
p.Fill(4,4,0)
p.Draw("COLZ")
ROOT.gPad.GetCanvas().Draw()

That filled bin should show up. It does with jsroot is turned off.

linev commented 3 months ago

Now empty TProfile2D bins with non-zero entries will be shown in color draw.

profile2d