ContributionPlot

class ContributionPlot.ContributionPlot(*args, **kwargs)[source]

Bases: Stack.Stack

Class for a normalized stack of 1-dimensional.

Inherits from Stack which inherits from ROOT.THStack, see official documentation as well!

Has the same features as Stack but only draws all stacked histograms normalized with respect to their sum (stacksum).

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

Initialize a stack of 1-dimensional histograms.

Create an instance of ContributionPlot from a given Stack or list of histograms (*args).

Parameters:
Arguments:

Depending on the number of arguments there are two ways to initialize a ContributionPlot object:

  • one argument of type Stack or THStack:

    1. stack (Stack, THStack) – copy all stacked histograms from the stack
  • multiple arguments of type Histo1D or TH1D:

    1. *args (Stack, THStack) – register a list of histograms to a new stack