shnitsel.vis.plot.spectra3d

Functions

inlabel(s, ax[, ha, va])

ski_plots(spectra)

Plot spectra for different times on top of each other,

pcm_plots(spectra)

Represent fosc as colour in a plot of fosc against time and energy.

Module Contents

inlabel(s, ax, ha='center', va='center')
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 spectra.spectra_all_times.

Parameters:

spectra (xarray.DataArray) – DataArray containing fosc values organized along ‘energy’, ‘time’ and ‘statecomb’ dimensions.

Return type:

Figure object corresponding to plot.

Examples

>>> import shnitsel as st
>>> from shnitsel.core.plot import spectra3d
>>> spectra_data = (
        st.io.read(path)
        .st.get_inter_state()
        .st.assign_fosc()
        .st.spectra_all_times())
>>> spectra3d.ski_plots(spectra_data)
pcm_plots(spectra)

Represent fosc as colour in a plot of fosc against time and energy. The colour scale is logarithmic. One plot per statecomb; plots stacked horizontally. Expected to be used on data produced by spectra.spectra_all_times.

Parameters:

spectra (xarray.DataArray) – DataArray containing fosc values organized along ‘energy’, ‘time’ and ‘statecomb’ dimensions.

Return type:

Figure object corresponding to plot.

Examples

>>> import shnitsel as st
>>> from shnitsel.core.plot import spectra3d
>>> spectra_data = (
        st.io.read(path)
        .st.get_inter_state()
        .st.assign_fosc()
        .st.spectra_all_times())
>>> spectra3d.pcm_plots(spectra_data)