LinearBinningPlotter

class remu.plotting.LinearBinningPlotter(binning, **kwargs)[source]

Bases: remu.plotting.BinningPlotter

Plotting class for LinearBinning

Parameters
binningLinearBinning

The binning to be plottet

**kwargsoptional

Additional keyword arguments are passed to BinningPlotter.

Notes

This plotter does always marginalize the subbinnings.

Attributes

figax

((Figure, [[Axes, …], …])) The figure and axes that are used for the plotting.

color

(cycle of str) Cycler that determines the color of plotting commands.

hatch

(cycle of str) Cycler that determines the hatching style of plotting commands.

binning

(LinearBinning) The binning defining what will be plotted.

marginalize_subbinnings

(bool) Whether or not subbinnings will be marginalized before plotting.

Methods

get_axis_label()

Return variable name.

get_bin_edges(i_min, i_max)

Get the finite bin edges.

legend(**kwargs)

Draw a legend in the first axis.

plot_array(*args, **kwargs)

Plot an array.

plot_entries([binning])

Plot the entries of a Binning.

plot_sumw2([binning])

Plot the sumw2 of a Binning.

plot_values([binning])

Plot the values of a Binning.

savefig(*args, **kwargs)

Save the figure.

subplots(*args, **kwargs)

Return the (Figure, Axes) tuple of the binning.

get_axis_label()[source]

Return variable name.

get_bin_edges(i_min, i_max)[source]

Get the finite bin edges.

legend(**kwargs)

Draw a legend in the first axis.

plot_array(*args, **kwargs)[source]

Plot an array.

See ArrayPlotter.plot_array().

plot_entries(binning=None, **kwargs)

Plot the entries of a Binning.

plot_sumw2(binning=None, **kwargs)

Plot the sumw2 of a Binning.

plot_values(binning=None, **kwargs)

Plot the values of a Binning.

savefig(*args, **kwargs)

Save the figure.

subplots(*args, **kwargs)

Return the (Figure, Axes) tuple of the binning.

Creates one using Matplotlib’s subplots, if necessary.