The jsROOT one has a white cell (top right bin EA6), while the png one (rightly) has this cell painted. If one clicks the cell, jsROOT redraw and paints this cell. This is probably kind of an optimization that jsROOT is doing. But is there anyway to fix this
Cheers
Rohin
ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
The issue seems to be that the minimal value along the z axis is stored as "fMinimum" : 2.06208729743958, while the minimal value stored in fArray is 2.062087. So indeed the minimum is larger than the minimal value in the histogram according to its description. While fMinimum is a double, for the TH2F that you are using, the fArray contains floats. Most likely the floating point numbers are not stored with the required precision; the floating point numbers seem to be stored with 7 digits (fgFloatFmt is %e in TBufferText.cxx), which according to std::numeric_limits<float>::max_digits10 is not enough to be converted back in a unique way. Similar arguments also apply for double.
The issue seems to be that the minimal value along the z axis is stored as "fMinimum"
Exactly, this is a problem!
Histogram bins values stored as floats, but min/max as double.
Can you just decrease fMinimum by small factor - in such case drawing will work.