SNEWS2 / snewpy

A Python package for working with supernova neutrinos
https://snewpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
24 stars 17 forks source link

Add default plotting functions for flux.Containers #342

Open Sheshuk opened 1 month ago

Sheshuk commented 1 month ago

flux.Container objects are created by the SupernovaModel.get_flux and RateCalculator.run functions. It would be nice to add a default function for plotting all the components of the flux - so a user could call flux.plot('time') or flux.plot('energy') for a quick inspection