stack

This module provides the Stack class.

class mATLASplotlib.plotters.stack.Stack(plot_style)

Bases: mATLASplotlib.plotters.base_plotter.BasePlotter

Plot as part of a vertically stacked histogram.

add_to_axes(axes, dataset, **kwargs)

Add the chosen dataset to the chosen axes.

Parameters:
  • axes (matplotlib.axes) – which axes to plot this dataset on
  • dataset (matplotlib.axes) – which axes to plot this dataset on
Keyword Arguments:
 
  • colour (str) – which face colour to use
  • hatch (str) – set hatch pattern
  • hatchcolour (str) – which hatch colour to use
  • label (str) – label to use when this appears in a legend
  • outlinewidth (str) – how wide to draw the outline