plot_spectra
- plot_spectra(res: xr.Dataset, axes: Axes, cycler: Cycler | None = cycler('color', [<ColorCode.black: '#000000'>, <ColorCode.red: '#ff0000'>, <ColorCode.blue: '#0000ff'>, <ColorCode.green: '#00ff00'>, <ColorCode.magenta: '#ff00ff'>, <ColorCode.cyan: '#00ffff'>, <ColorCode.yellow: '#ffff00'>, <ColorCode.green4: '#008b00'>, <ColorCode.orange: '#ff8c00'>, <ColorCode.brown: '#964b00'>, <ColorCode.grey: '#808080'>, <ColorCode.violet: '#9400d3'>, <ColorCode.turquoise: '#40e0d0'>, <ColorCode.maroon: '#800000'>, <ColorCode.indigo: '#4b0082'>]), show_zero_line: bool = True, das_cycler: Cycler | None | UnsetType = Unset) None [source]
Plot spectra such as SAS and DAS as well as their normalize version on
axes
.- Parameters:
res (xr.Dataset) – Result dataset
axes (Axes) – Axes to plot the spectra on (needs to be at least 2x2).
cycler (Cycler | None) – Plot style cycler to use. Defaults to PlotStyle().cycler.
show_zero_line (bool) – Whether or not to add a horizontal line at zero. Defaults to True.
das_cycler (Cycler | None | UnsetType) – Plot style cycler to use for DAS plots. Defaults to
Unset
which means that the value ofcycler
is used.