solprop.plotting#

Standard plots of propagation results with matplotlib.

Every figure is drawn from what solprop.processing reads out of a saved run, takes an Output, returns figures and never calls show(), so a script decides whether to save or display. The package re-exports the public names of:

  • propagation (the propagation maps, the time and spectral slices and the energy along the guide), statistics (the statistics panels) and spectrograms;

  • style (colours, grids, annotations and the fixed display units: z in cm, time in fs, wavelength in nm, frequency in PHz, angular frequency in rad/fs, energy in µJ, power auto-scaled).

The cross-section of a guide or a free-space grid, drawn from the guide rather than from a run, is in solprop.plotting.geometry. The manual page is docs/guide/results/plotting.md.

Modules

geometry

Draw the cross-section of a guide or a free-space grid.

propagation

The standard figures of a propagation: the maps, the slices and the energy.

spectrograms

Time-frequency maps of a saved plane, through a Gaussian-gated short-time transform.

statistics

Line plots of the statistics a run recorded at its saved planes.

style

Colours, grids, units and annotations shared by the standard figures.