Skip to main content

A simple Python package for use by Belle II analysts to make various plots out of pandas dataframes and numpy arrays.

Project description

b2_plotter

Description

The b2_plotter package consists of the class Plotter(), whereby several plots based on numpy arrays and pandas dataframes can be created easily.

Releases

Version 2.0.6

  • Change functions to return plots instead of displaying them, and remove interactive feature
  • Add a scaled signal histogram to the plot function
  • Update dynamic range calculation in plotFom for isGreaterThan = False cuts to prevent division by zero errors

Version 2.0.5

  • Add cuts argument to plotFom

Version 2.0.4

  • Last push didnt include changes, so include bugfix
  • Add dist/, .pytest_cache, and .ipynb_checkpoints to git ignore

Version 2.0.3

  • Bugfix call to numpy.histogram() (was called np.histogram)

Version 2.0.2

  • Implement unit tests for constructor TypeError raises

Version 2.0.1

  • Implement data plotting in plot()
  • Implement unit tests for functions in non-interactive mode

Version 1.0.9

  • Set myrange = () in plotFom to enable the dynamic range calculation from v.1.0.5 if the user does not provide a range.

Version 1.0.8

  • Implement dynamic range calculation in plotStep
  • Bugfix labels not showing up on plotFom for myrange = () (default)
  • Bugfix get_sigeff (missing period)

Version 1.0.7

  • Bugfix (remove () from numpy.size, as size is a property, not a method)

Version 1.0.6

  • Remove deprecated var total_bkg from plotFom()

Version 1.0.5

  • Create example files for interactive session
  • Change massvar name to be consistent (massVar in get_purity but massvar in FOM, etc)
  • Implement dynamic range calculation in plotFom

Version 1.0.4

  • Bugfix main and implement a for loop to plot multiple variables
  • Create usage details in README.md

Version 1.0.3

  • Change readme such that recent versions are at the top
  • Remove plotBias function, as it is very niche
  • Remove unused parameter myrange in get_sigeff and get_purity
  • Add main() function
  • Add interactivity boolean in constructor call to decide whether or not to save plots to a .png or show them directly

Version 1.0.2

  • Edit README.md
  • Remove tests/ directory (unit tests are not particularly useful for this package)
  • Rename directories so imports are more intuitive

Version 1.0.1

  • Add unit tests
  • Switch backend to hatchling
  • Move metadeta to pyproject.toml and clean it up
  • Remove brackets from LICENSE.txt
  • Create tests/ directory

Version 1.0.0

Initial launch.

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

b2_plotter-2.0.6.tar.gz (76.0 kB view details)

Uploaded Source

Built Distribution

b2_plotter-2.0.6-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

Details for the file b2_plotter-2.0.6.tar.gz.

File metadata

  • Download URL: b2_plotter-2.0.6.tar.gz
  • Upload date:
  • Size: 76.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for b2_plotter-2.0.6.tar.gz
Algorithm Hash digest
SHA256 3820e03b7b0d08f948e51254a1d61b883508a862ee90706834be41ae5bf4d276
MD5 5c3c4a50c854637dbd81755b1be263cd
BLAKE2b-256 18c546afcaab95a2970a39b56001a8759e82a4b836fe62381c5e7c885cd7bb41

See more details on using hashes here.

File details

Details for the file b2_plotter-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: b2_plotter-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 72.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for b2_plotter-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd50499765a724764abf329f74f2da1e78efe0861e44da23c61422061818532
MD5 791b6a4dd244e6541d8244debcd29e1e
BLAKE2b-256 14b4f777b4d0e0e2b79ab4f54e1ebf192b5a8e679986589e383117203d10091a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page