select_plot_wavelengths
- select_plot_wavelengths(result: ResultLike, axes_shape: tuple[int, int] = (4, 4), wavelength_range: tuple[float, float] | None = None, equidistant_wavelengths: bool = True) Iterable[float] [source]
Select wavelengths to be used in
plot_fit_overview
from a result.- Parameters:
result (ResultLike) – Data structure which can be converted to a mapping of datasets.
axes_shape (tuple[int, int]) – Shape of the plot grid (N, M). Defaults to (4, 4).
wavelength_range (tuple[float, float] | None) – Tuple of minimum and maximum values to calculate the the wavelengths used for plotting. If not provided the values will be tetermined over all datasets. Defaults to None.
equidistant_wavelengths (bool) – Whether or not wavelengths should be selected based on equidistant values or equidistant indices (only supported for a single dataset). Since in general multiple datasets will have. Defaults to True.
- Returns:
Wavelength which should be used for each subplot by
plot_fit_overview
.- Return type:
Iterable[float]
See also