Skip to main content

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)

Stacked model under the data

Figures: newplot, set_style, add_whitespace, stamp, badge, legend.

See an example in examples/rikabplotlib_examples.ipynb.

Metadata

Release files for rikabplotlib 0.0.5

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

Source distribution (sdist)

Source distribution for rikabplotlib 0.0.5
File Size Uploaded
rikabplotlib-0.0.5.tar.gz 10.1 kB Details

Built distribution (wheel)

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

Total release size: 22.7 kB

Release files / rikabplotlib-0.0.5.tar.gz

Download URL rikabplotlib-0.0.5.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
715e3f0852fc8b630e1aa26e3fabb6b0471211611b00ba84ed2aaa3091e72a9c
BLAKE2b-256 checksum
How to use checksums
24cf8d1448de0a0545ab3f1bcf3330ef7caf3c3050a88e436b09dc36de96a1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / rikabplotlib-0.0.5-py3-none-any.whl

Download URL rikabplotlib-0.0.5-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de38f933606f320beaf67aa42489c7e501907faf2a0260b6a15629680ebf02f0
BLAKE2b-256 checksum
How to use checksums
72d6af7b407053da605e5e5ec153f55e6af221dcef681bcf33a9eeee2c4797e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15
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