prsctrl.data.plot.plot_XY#
- plot_XY(data: PrsData, min_n_wavelengths=50, save_fig=False, get_spectrum_kw=None, fig=None, ax=None, title=True, colorbar: Literal['separate'] | Axes = 'separate', colorbar_kw=None, subplots_kw=None, blue_above=True)[source]#
Plot dI-Y/I against dI-Y/I. X-Y plots can provide information on where a spectrum component comes from, since components with different time constants will have different angles in the plot.
mqutil is required plot the data points in the color of the respective wavelength.
- Parameters:
min_n_wavelengths – Minimum number of wavelengths the data must have
save_fig – If True, save in data dir as ‘<data dir name>_XY-plane.pdf’. If str, save_fig is the plot file path.
get_spectrum_kw – Keyword arguments for get_spectrum_data (for example transforms)
title – If True, use data name as plot title. If str, use title as title.
colorbar – If True, draw a colorbar next to the plot on the same axis. If “separate”, draw it on an axis to the right (will have same size then), if an axis, draw onto the axis. Set to None or False for no colorbar
colorbar_kw – Additional arguments to pass to
fig.colorbar, for example, use{"location": "top"}to put the axis on top of the other axisblue_above – If True, plot order of points from red to blue, otherwise from blue to red.
- Returns:
(fig, ax) or (None, None)