ATLAS Plots for Humans
Project description
ATLAS Plots
: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")
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atlasplots-0.1.11.tar.gz.
File metadata
- Download URL: atlasplots-0.1.11.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d45572884b1aac6c2450f996f8782b75dda5ae1329425cddd4374710fdec55
|
|
| MD5 |
65f62dd147ee7b6cefad03ed321f7d10
|
|
| BLAKE2b-256 |
8539069cd214660bfd540e50e2532967a3816f45dbf1bb473fa7b095efaea129
|
Provenance
The following attestation bundles were made for atlasplots-0.1.11.tar.gz:
Publisher:
publish-to-pypi.yml on joeycarter/atlas-plots
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlasplots-0.1.11.tar.gz -
Subject digest:
a0d45572884b1aac6c2450f996f8782b75dda5ae1329425cddd4374710fdec55 - Sigstore transparency entry: 195985537
- Sigstore integration time:
-
Permalink:
joeycarter/atlas-plots@35b40c0b6bb75ece6220ffff5cc4fb21c8e3df47 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/joeycarter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@35b40c0b6bb75ece6220ffff5cc4fb21c8e3df47 -
Trigger Event:
push
-
Statement type:
File details
Details for the file atlasplots-0.1.11-py3-none-any.whl.
File metadata
- Download URL: atlasplots-0.1.11-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b4aded27e4d416c3f8c03c0e7cf8591d0ccbfec23b142e0f9e5a4799285a66
|
|
| MD5 |
6ebea7a38a32fdc90fda616b43318dc1
|
|
| BLAKE2b-256 |
d3237429f96a501bc68962809733906a064c63eac4f8c40135447035261c7ecb
|
Provenance
The following attestation bundles were made for atlasplots-0.1.11-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on joeycarter/atlas-plots
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlasplots-0.1.11-py3-none-any.whl -
Subject digest:
97b4aded27e4d416c3f8c03c0e7cf8591d0ccbfec23b142e0f9e5a4799285a66 - Sigstore transparency entry: 195985542
- Sigstore integration time:
-
Permalink:
joeycarter/atlas-plots@35b40c0b6bb75ece6220ffff5cc4fb21c8e3df47 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/joeycarter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@35b40c0b6bb75ece6220ffff5cc4fb21c8e3df47 -
Trigger Event:
push
-
Statement type: