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=True, 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.

  • blue_above – If True, plot order of points from red to blue, otherwise from blue to red.

Returns:

(fig, ax) or (None, None)