Skip to main content

A Python package for creating publication quality plots for neutron / photon / particle spectrum

Project description

N|Python

CI with install

Upload Python Package

Spectrum Plotter

A Python package for creating standard plots for neutron / photon / particle spectrum

Installation

pip install spectrum_plotter

Usage

There are two main functions for plotting spectrum:

plot_spectrum_from_values() - allows users to pass in the tally via a dictionary of tuples where each tuple contains x,y and optionally y_error values as numpy arrays.

plot_spectrum_from_tally() - allows users to pass in an OpenMC tally and plot the result. Units can be automatically scaled,normalised and converted.

:point_right: Examples

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

spectrum_plotter-0.2.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

spectrum_plotter-0.2.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file spectrum_plotter-0.2.3.tar.gz.

File metadata

  • Download URL: spectrum_plotter-0.2.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for spectrum_plotter-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b77a195b4cdff5946d1233672d72dd9fae87b0ad5edfb736e3ded8b20cad57e7
MD5 1ad9659d6901b7a0b29a83f663683255
BLAKE2b-256 53d5945440dd126ae10bfe6b7c618b31bcd24a54b1dfac92ca14b4b2953d014d

See more details on using hashes here.

File details

Details for the file spectrum_plotter-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: spectrum_plotter-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for spectrum_plotter-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd5f43e4ea8dd0afb75162b4d2ad3d123304fb5680dc3ac247a2620f4fd4b7e
MD5 12fd87872c37b070f7d54c681528f88b
BLAKE2b-256 3d6df4a8ffd6fcf8d2206c38dcc534617e2986eee1991c1fdf30b1b9f373ff87

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