Skip to content

Commit

Permalink
port in hist from old coffea to jitters area
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed May 15, 2024
1 parent f1831f0 commit c075935
Show file tree
Hide file tree
Showing 6 changed files with 3,511 additions and 0 deletions.
Empty file added src/coffea/jitters/__init__.py
Empty file.
38 changes: 38 additions & 0 deletions src/coffea/jitters/hist/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""Histogramming tools
`coffea.hist` is a histogram filling, transformation, and plotting sub-package, utilizing
numpy arrays for storage and matplotlib plotting routines for visualization.
Features found in this package are similar to those found in
packages such as `histbook <https://github.com/scikit-hep/histbook>`__ (deprecated),
`boost-histogram <https://github.com/scikit-hep/boost-histogram>`__ (in development),
`physt <https://github.com/scikit-hep/boost-histogram>`__, and built-in numpy
`histogram <https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html>`__ utilities.
"""

from coffea.jitters.hist.hist_tools import Bin, Cat, Hist, Interval, StringBin
from coffea.jitters.hist.plot import (
clopper_pearson_interval,
normal_interval,
plot1d,
plot2d,
plotgrid,
plotratio,
poisson_interval,
)

__all__ = [
"Hist",
"Bin",
"Interval",
"Cat",
"StringBin",
"poisson_interval",
"clopper_pearson_interval",
"normal_interval",
"plot1d",
"plotratio",
"plot2d",
"plotgrid",
]
Loading

0 comments on commit c075935

Please sign in to comment.