plasma-plots
Install from PyPI with
pip install plasma-plotspip install "plasma-plots[netcdf,plotly]" # netCDF files and interactive plotsPlots and diagnostics of labeled xarray data from plasma simulations: the output of STRUPHY, and of any code whose arrays follow the same conventions. It also reads GVEC’s equilibrium evaluations directly. Plots can be rendered with Matplotlib, Plotly, PyVista, or as TikZ/pgfplots through maxplotlib.
You can find the documentation here.
Links:
From the documentation
A rotating mode in a 2D cross-section
|B| of W7-X on the surface ρ = 0.5 and three poloidal cuts, from DESC
|B| on the last flux surface of a three-period stellarator, from GVEC
Magnetic field lines in a torus
Guiding-center orbits: passing, trapped and lost
A Poincaré section with nested flux surfaces and a chain of two islands
A 3D equilibrium