TGraph with SetBarOffset

In the documentation for THistPainter, the THn’s support bar-related drawing options including multiple histograms offset by some amount.

I would like to use this functionality to make something like Figure 4 here (Measurements of the production cross section of a $Z$ boson in association with high transverse momentum jets in $pp$ collisions at $\sqrt{s} = 13$ TeV with the ATLAS detector)

where we have asymmetric errors drawn (hence the TGraph / TGraphAsymmErrors). How can this be done? Is the option to draw a TH1 with the regular binning, and then make TGraphs with expanded binning and draw them on top of the plot?

By definition TGraph (and the classes inheriting from it) has no binning. Points are drawn at the exact positions stored in the graph. The only way to produce such plots with graph will be to modify the initial graph by offsetting the x positions with some value.

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