hist.stack module#
- class hist.stack.Stack(*args: BaseHist)#
Bases:
object
- property axes: NamedAxesTuple#
- classmethod from_dict(d: Mapping[str, BaseHist]) Self #
Create a Stack from a dictionary of histograms. The keys of the dictionary are used as names.
- classmethod from_iter(iterable: Iterable[BaseHist]) Self #
Create a Stack from an iterable of histograms.
- plot(*, ax: mpl.axes.Axes | None = None, **kwargs: Any) Any #
Plot method for Stack object.
- project(*args: int | str) Self #
Project the Stack onto a new axes.
- show(**kwargs: object) Any #
Pretty print the stacked histograms to the console.