Skip to main content


ATLAS Plots
ATLAS Plots

License Documentation Status PyPI - Python Version


:warning: I am no longer actively maintaining ATLAS Plots. If you find a bug, please feel free to open an issue or a pull request and I will get to it as soon as I can. Thank you for your continued interest!


ATLAS Plots provides a simple interface to produce plots in ROOT following the standard ATLAS style guidelines. It uses matplotlib-like syntax and idioms while still giving access to the underlying ROOT objects.

Behold, the simplicity of ATLAS Plots:

import atlasplots as aplt

aplt.set_atlas_style()

fig, ax = aplt.subplots(1, 1)
ax.set_xlabel("X [GeV]")
ax.set_ylabel("Events")
ax.set_xlim(0, 100)
ax.set_ylim(0, 10)

fig.savefig("figure.png")

Figure

Compare with the equivalent PyROOT code:

import ROOT
import atlasplots as aplt

aplt.set_atlas_style()

canv = ROOT.TCanvas("canv", "", 800, 600)
frame = ROOT.TH1F("frame", "", 1, 0, 1)
frame.GetXaxis().SetTitle("X [GeV]")
frame.GetYaxis().SetTitle("Events")
frame.GetXaxis().SetLimits(0, 100)
frame.GetYaxis().SetLimits(0, 10)
frame.Draw("AXIS")

canv.SaveAs("figure.png")

Installing

$ pip install atlasplots

You can also install in editable mode if you need a quick-and-dirty way to make changes to the source code:

$ git clone <project-url>
$ cd atlas-plots
$ pip install [--user] -e .

Examples

For those who learn by example

Several examples of more complex plots, such as histogram fits, ratio and fit-residual panels, Data/MC plots, etc., are available under the examples/ directory.

Documentation

The ATLAS Plots documentation is available at https://atlas-plots.readthedocs.io.

Metadata

Release files for atlasplots 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atlasplots 0.1.11
File Size Uploaded
atlasplots-0.1.11.tar.gz 23.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atlasplots 0.1.11
File Interpreter ABI Platform
atlasplots-0.1.11-py3-none-any.whl Python 3 none any Details

Total release size: 47.7 kB

Release files / atlasplots-0.1.11.tar.gz

Download URL atlasplots-0.1.11.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a0d45572884b1aac6c2450f996f8782b75dda5ae1329425cddd4374710fdec55
BLAKE2b-256 checksum
How to use checksums
8539069cd214660bfd540e50e2532967a3816f45dbf1bb473fa7b095efaea129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2025.

Transparency log

Release files / atlasplots-0.1.11-py3-none-any.whl

Download URL atlasplots-0.1.11-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97b4aded27e4d416c3f8c03c0e7cf8591d0ccbfec23b142e0f9e5a4799285a66
BLAKE2b-256 checksum
How to use checksums
d3237429f96a501bc68962809733906a064c63eac4f8c40135447035261c7ecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page