Skip to content

[FEATURE] HistStack #169

@henryiii

Description

@henryiii

A possible design for stacked histograms is the following:

A HistStack holds multiple histograms; axes are required to match. Calling .plot(...) forwards to mplhep, just like Hist.plot, but with the stack of histograms as a list in the first argument.

To make a stack, you could use |, so that:

(h1 | h2 | h3).plot()

Would make a stack of histograms and plot it.

This also might tie into #165, possibly .interp on a stack would interpolate between histograms? Just a thought.

EDIT: should have added to #34 instead...

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions