ContributionPlot¶
-
class
ContributionPlot.
ContributionPlot
(*args, **kwargs)[source]¶ Bases:
Stack.Stack
Class for a normalized stack of 1-dimensional.
Inherits from Stack
which inherits fromROOT.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 givenStack
or list of histograms (*args).Parameters: - *args – see below
- **kwargs –
ContributionPlot
properties
Arguments: Depending on the number of arguments there are two ways to initialize a
ContributionPlot
object:one argument of type
Stack
orTHStack
:- stack (
Stack
,THStack
) – copy all stacked histograms from the stack
- stack (
multiple arguments of type
Histo1D
orTH1D
:- *args (
Stack
,THStack
) – register a list of histograms to a new stack
- *args (
-