plotgrid

coffea.hist.plotgrid(h, figure=None, row=None, col=None, overlay=None, row_overflow='none', col_overflow='none', **plot_opts)[source]

Create a grid of plots, enumerating identifiers on up to 3 axes

Parameters:
  • h (Hist) – A histogram with up to 3 axes

  • figure (matplotlib.figure.Figure, optional) – If omitted, a new figure is created. Otherwise, the axes will be redrawn on this existing figure.

  • row (str) – Name of row axis

  • col (str) – Name of column axis

  • overlay (str) – name of overlay axis

  • row_overflow (str, optional) – If overflow behavior is not ‘none’, extra bins will be drawn on either end of the nominal x axis range, to represent the contents of the overflow bins. See Hist.sum documentation for a description of the options.

  • col_overflow (str, optional) – Similar to row_overflow

  • **plot_opts (kwargs) – The remaining axis of the histogram, after removing any of row,col,overlay specified, will be the plot axis, with plot_opts passed to the plot1d call.

Returns:

axes – An array of matplotlib Axes objects

Return type:

numpy.ndarray