Histogramming for analysis powered by boost-histogram
Hist
Hist is a analyst friendly front-end for boost-histogram, designed for Python 3.7+ (3.6 users get version 2.3).
Installation
You can install this library from PyPI with pip:
python3 -m pip install "hist[plot]"
If you do not need the plotting features, you can skip the [plot]
extra.
Features
Hist currently provides everything boost-histogram provides, and the following enhancements:
-
Hist augments axes with names:
name=
is a unique label describing each axislabel=
is an optional string that is used in plotting (defaults toname
if not provided)- Indexing, projection, and more support named axes
- Experimental
NamedHist
is aHist
that disables most forms of positional access
-
The
Hist
class augmentsbh.Histogram
with reduced typing construction: