ContributionPlot¶
-
class
ContributionPlot.ContributionPlot(*args, **kwargs)[source]¶ Bases:
Stack.StackClass for a normalized stack of 1-dimensional.
Inherits from Stackwhich inherits fromROOT.THStack, see official documentation as well!Has the same features as
Stackbut 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
ContributionPlotfrom a givenStackor list of histograms (*args).Parameters: - *args – see below
- **kwargs –
ContributionPlotproperties
Arguments: Depending on the number of arguments there are two ways to initialize a
ContributionPlotobject:one argument of type
StackorTHStack:- stack (
Stack,THStack) – copy all stacked histograms from the stack
- stack (
multiple arguments of type
Histo1DorTH1D:- *args (
Stack,THStack) – register a list of histograms to a new stack
- *args (
-