A Python package for creating standard plots for neutron / photon / particle spectrum
To make use of this package you wll need OpenMC installed. See the instructions here for installing OpenMC.
pip install spectrum_plotter
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