Drawing histograms for separate bins

Hello experts,

I wanna draw histograms inside the 2D binning.I attached a similar histogram that I need to draw.
And I want to know how to draw this type of plot using .root file.

Any tricks would be greatly appreciated.

You probably have to draw the axes (Q^2 and x_B) manually with TAxis, then create a TPad (with 0 borders and margins) for each histogram. And you’ll have to figure out the coordinates and sizes for these pads.

This plot looks like done with ROOT already. You do not have the macro ?
You can also use TPad::DrawFrame to draw the two axis. Then you have to create all the sub-pads at the desired positions.

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