shnitsel.plot.ski_plots¶
- ski_plots(spectra)¶
Plot spectra for different times on top of each other, along with a dashed line that tracks the maximum. One plot per statecomb; plots stacked vertically. Expected to be used on data produced by
spectra3d.spectra_all_times
.- Parameters:
spectra (DataArray) – DataArray containing fosc values organized along ‘energy’, ‘time’ and ‘statecomb’ dimensions.
- Return type:
Figure object corresponding to plot.
Examples
>>> from shnitsel.core import xrhelpers as xh, postprocess as P >>> from shnitsel.core.plot import spectra3d >>> spectra_data = ( xh.open_frames(path) .pipe(P.get_inter_state) .pipe(P.assign_fosc) .pipe(spectra3d.spectra_all_times)) >>> spectra3d.ski_plots(spectra_data)