Registry / data / mplhep-data

mplhep-data

JSON →
library0.1.0pypypi✓ verified 21d ago

mplhep-data is a font (data) sub-package for `mplhep`, providing several common High Energy Physics fonts like Tex Gyre Termes and Latin Modern. It is currently at version 0.0.5 and appears to have an infrequent release cadence focused on adding new fonts or maintenance. It acts as a data provider, making these fonts available for `mplhep` styles rather than offering a direct Python API for users.

pip install mplhep-data
INSTALL
IMPORT
SIG · MPLHEP-DATA
M
mplhep-data
datapythonv0.1.0
Install
1.7s avg
Import
Disk
33MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 35.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 36MB
33MB installed
● package 33MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

N/A
mplhep-data provides data assets for mplhep; direct Python imports are not typically used by end-users.
mplhep-data is a data package, not a library with public Python symbols for direct user import. Its contents (fonts) are consumed by the mplhep library when its styles are applied.

A basic `mplhep` plot demonstrating style application. When `mplhep-data` is installed, `mplhep` automatically gains access to its provided fonts, which are used by styles like `ATLAS` or `CMS` for correct rendering and consistent font usage across platforms.

import matplotlib.pyplot as plt import mplhep as hep # mplhep-data is implicitly used by mplhep for its font assets. # Ensure mplhep-data is installed for full font support in mplhep styles. plt.style.use(hep.style.ATLAS) # Or hep.style.CMS, hep.style.LHCb, etc. fig, ax = plt.subplots() ax.plot([0, 1], [0, 1]) ax.set_xlabel("x-axis") ax.set_ylabel("y-axis") ax.set_title("Example Plot with mplhep Style") hep.atlas.label("Preliminary") # Example using a label from mplhep plt.show()
Debug
Known issues
gotchamplhep-data is a soft dependency of `mplhep`. If `mplhep` styles (e.g., ATLAS, CMS, LHCb) appear to render incorrectly or display default fonts, it is likely that `mplhep-data` has not been installed, preventing `mplhep` from accessing the intended fonts.
fix
Ensure `mplhep-data` is installed alongside `mplhep` using `pip install mplhep-data`.
affects: All versions
gotchaAs a data package, `mplhep-data` itself doesn't offer a Python API for direct user interaction. Attempts to `import mplhep_data` for programmatic use of fonts directly will likely be unfruitful, as its purpose is to make resources available to `mplhep`'s styling system.
fix
Rely on `mplhep` to manage and apply the fonts provided by `mplhep-data` via its styling system (`mplhep.style.use()`).
affects: All versions
gotchaDue to the low major version (0.x.x), minor version updates could potentially introduce new fonts or subtly modify existing ones. While typically stable for a data package, this might lead to minor visual changes in plots if specific font characteristics are strictly relied upon.
fix
Pin `mplhep-data` to a specific version if strict font consistency is critical across different deployment environments.
affects: 0.0.x
Upgrade
Version history
0.1.0latest on PyPI · released Jun 4, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
1 hits · last 30 days
Resources
mplhep-data — pip install mplhep-data · libregistry