Skip to main content
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)

Stacked model under the data

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rikabplotlib-0.0.6.dev0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

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

Hashes for rikabplotlib-0.0.6.dev0.tar.gz
Algorithm Hash digest
SHA256 0ba8e8507239af9c0879fbff9941dd9f95cee1ad83cff86185a56657c64ee9ae
MD5 f3d4a451cc34494415a0e8e9185af76d
BLAKE2b-256 23ca610f8ce5e4b1d8b59a64806023974bd1cbfb44e27ad0108b208b6e3f8fc4

See more details on using hashes here.

File details

Details for the file rikabplotlib-0.0.6.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for rikabplotlib-0.0.6.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e0dfa03e98a114f125693a72e1ba6093831b33789929850cf95d96a7269b1cc
MD5 4b55e2a15b1702df37e35ca3ba539dd2
BLAKE2b-256 1ff3897605401ce0400bd4f33fff36e8a15877db6d1b456a740fa4dce6bb98fd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6.dev0 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page