Pre-release
This release is a pre-release and may not be stable for production use.
rikabplotlib
Matplotlib style sheets and helpers for physics plots.
pip install rikabplotlib
from rikabplotlib import newplot, hist_with_errors, hist_stack, ratio_panel, legend, BLUE, GREEN
fig, main, pull = newplot(ratio = True)
model = hist_stack(main, [continuum, reducible], bins = 40, range = (100, 180), colors = [BLUE, GREEN], labels = ["Continuum", "Reducible"])
data = hist_with_errors(main, measured, bins = 40, range = (100, 180), color = "black", label = "Data")
ratio_panel(pull, data.centers, data.counts, model.counts, data.errors, model.errors, mode = "pull")
main.set_ylabel("Events / 2 GeV")
pull.set_xlabel(r"$m_{\gamma\gamma}$ [GeV]")
legend(main)
Figures: newplot, set_style, add_whitespace, stamp, badge, legend.
See an example in
examples/rikabplotlib_examples.ipynb.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rikabplotlib-0.0.6.dev0.tar.gz
(10.1 kB
view details)
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 rikabplotlib-0.0.6.dev0.tar.gz.
File metadata
- Download URL: rikabplotlib-0.0.6.dev0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ba8e8507239af9c0879fbff9941dd9f95cee1ad83cff86185a56657c64ee9ae
|
|
| MD5 |
f3d4a451cc34494415a0e8e9185af76d
|
|
| BLAKE2b-256 |
23ca610f8ce5e4b1d8b59a64806023974bd1cbfb44e27ad0108b208b6e3f8fc4
|
File details
Details for the file rikabplotlib-0.0.6.dev0-py3-none-any.whl.
File metadata
- Download URL: rikabplotlib-0.0.6.dev0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e0dfa03e98a114f125693a72e1ba6093831b33789929850cf95d96a7269b1cc
|
|
| MD5 |
4b55e2a15b1702df37e35ca3ba539dd2
|
|
| BLAKE2b-256 |
1ff3897605401ce0400bd4f33fff36e8a15877db6d1b456a740fa4dce6bb98fd
|