prsctrl.data.plot.plot_modulus_spectrum#
- plot_modulus_spectrum(data: PrsData, min_n_wavelengths=100, which_real='dI_I', save_fig=False, **plot_spectrum_kw)[source]#
Plot the modulus spectrum of data and save it in the data directory (by default). If data has less than min_n_wavelengths, the modulus spectrum is not plotted. This is because the Kramers-Kronig transformation requires a certain energy range to be useful.
- Parameters:
min_n_wavelengths – Minimum number of wavelengths the data must have.
which_real – Which column to use as real spectrum. Can be “dI_I”, “dI-X_I” or “dI-Y_I”
- Returns:
(fig, ax) or (None, None)