hist
hist copied to clipboard
Histogramming for analysis powered by boost-histogram
**Describe the problem, if any, that your feature request is related to** In the bottom panel of ratio plots, black dots are always drawn, leaving no flexibility for user choices,...
In: ```python import matplotlib.pyplot as plt import numpy from hist import Hist #------------------------------------------------------ def get_hist(): h = ( Hist.new .Reg(10, -2 ,2, name='x', label='x-axis') .Int64() ) data=numpy.random.normal(size=10000) h.fill(data) return h...
**Describe the bug** Adding two hists of different storage types just results in having an empty hist without raising an error: **Steps to reproduce** ``` import numpy as np from...
I think graphviz will be a problem.
### Code cell contents ```python import piplite await piplite.install("mplhep") await piplite.install("hist") ``` ```python from hist import Hist ``` ```python h = Hist.new.Reg(10, -5, 5).Double() ``` ```python h ```  _(good)_...
```python >>> hist.Hist.new.StrCat(["all", "pass", "fail"], name="isEM").Log(1000, 0.0, 2000.0, name="pt", label="$pt_{\gamma}$ [GeV]").Int64() Traceback (most recent call last): File "", line 1, in File "/Users/kratsg/radiativeDecays/venv/lib/python3.11/site-packages/hist/quick_construct.py", line 113, in Log axis.Regular( File "/Users/kratsg/radiativeDecays/venv/lib/python3.11/site-packages/hist/axis/__init__.py",...
updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.9)
```python import numpy as np import hist hist1 = hist.Hist.new.Reg(50, 0, math.pi).Double() hist1.fill(np.random.uniform(0, math.pi,200)) hist1.plot() ``` gives with (poisson) errorbars  while ```python import numpy as np import hist hist1...
**Describe the bug** `hist.dask.Hist` generates an unpickleable object if computed with no `fill` call **Steps to reproduce** ```python import pickle import dask import dask_awkward import hist.dask import numpy import awkward...
**Describe the bug** Passing a `bh.Histogram` object into `hist.Hist` with the `name` keyword argument does not work for `name`. **Steps to reproduce** ```py In [1]: import hist; import boost_histogram as...