I would like to create a 2d histogram, where in each bin the value represented by that bin is shown in the center of that given bin

I would like to create a 2d histogram, where in each bin the value represented by that bin is shown in the center of that given bin.

Like here:

ROOT Version: Not Provided
Platform: uproot
Compiler: Not Provided


Use the “text” option when drawing https://root.cern/root/html602/THistPainter.html#HP15
e.g.

 h->Draw("col,text");
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.