Skip to main content

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

Metadata

Release files for spectrum-plotter 0.2.3

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

Source distribution (sdist)

Source distribution for spectrum-plotter 0.2.3
File Size Uploaded
spectrum_plotter-0.2.3.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spectrum-plotter 0.2.3
File Interpreter ABI Platform
spectrum_plotter-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / spectrum_plotter-0.2.3.tar.gz

Download URL spectrum_plotter-0.2.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b77a195b4cdff5946d1233672d72dd9fae87b0ad5edfb736e3ded8b20cad57e7
BLAKE2b-256 checksum
How to use checksums
53d5945440dd126ae10bfe6b7c618b31bcd24a54b1dfac92ca14b4b2953d014d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / spectrum_plotter-0.2.3-py3-none-any.whl

Download URL spectrum_plotter-0.2.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cd5f43e4ea8dd0afb75162b4d2ad3d123304fb5680dc3ac247a2620f4fd4b7e
BLAKE2b-256 checksum
How to use checksums
3d6df4a8ffd6fcf8d2206c38dcc534617e2986eee1991c1fdf30b1b9f373ff87
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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