hist

Installation
SKILL.md

Hist

Overview

Use this skill to build and manipulate hist.Hist objects, choose axis/storage types, fill with data and weights, and produce publication-style plots with mplhep styles, all based on matplotlib.

Quick start

  • Create histograms with Hist.new plus axis builders (Reg, Var, StrCat) and finish with exactly one storage (Int64 or Weight).
  • Make sure axis labels contain a short variable name and units. Histogram titles should contains a slightly longer concise description of what data went into the plot.
  • Fill with .fill(...) using axis names; note that .fill returns None.
  • Slice or project with UHI indexing (e.g., h.project("x") or h[{"x": 5j}]).
  • Plot with hist.plot(...) or mplhep.hist2dplot(...); use plt.style.use(hep.style.ATLAS) for HEP-style plots.

Core tasks

Create axes and storage

Installs
1
First Seen
Mar 20, 2026
hist from smithery.ai