afw.common.plot_thing#

afw.common.plot_thing(histogram: Hist, title: str, units: str)[source]#

A convenience function used to generate a bar graph and Data/MC agreement plot, as well as plot signal

Parameters:
  • histogram (hist.Hist) – The histogram object to plot. This should have two axis: a dataset axis and an axis to plot

  • title (str) – The title of the appropriate histogram

  • units (str) – The units of bin width, for use when labeling axis

Returns:

A figure which may be saved locally

Return type:

plt.Figure