Skip to content

User Guide¤

Welcome to the mplhep user guide! This documentation is organized into focused sections to help you find what you need quickly.

Prerequisites

Throughout this guide the following codeblock is assumed.

import matplotlib.pyplot as plt
import numpy as np
import hist
np.random.seed(42)
import mplhep as mh
mh.style.use('<as appropriate>')

Histogram Plotting¤

Functions for 1D and 2D pre-binned histograms with support for the Unified Histogram Interface (UHI).

Comparison Plotting¤

High-level functions for data-model comparisons.

Styling¤

Official styles for ATLAS, CMS, LHCb, ALICE, and DUNE experiments.

Utilities¤

Utility functions and experiment-specific label formatters.

To go further¤

UHI integration and best practices.

More Info¤

  • API Reference - Detailed documentation of all functions and parameters
  • Gallery - Visual examples of all plot types
  • Contributing - Information on development and testing