prsctrl.data.plot.plot_offset_data#

plot_offset_data(data: PrsData, what: list[str] = ['lock-in-R'], with_errors: bool = True, relative_time: bool = True, subplots_kw: dict | None = None, **plot_kw) → tuple[Figure, ndarray[tuple[Any, ...], dtype[Axes]]][source]#

Plot the offsets recorded during a normal spectral measurement, one subplot per key.

The offsets are retrieved with get_offset_data().

Parameters:
  • data – Photoreflectance data containing offset entries.

  • what – Column keys to plot, one subplot per key.

  • with_errors – Whether to plot error bars. Requires the error columns s<key>.

  • relative_time – If True, plot the time relative to the first data point, otherwise the timestamp.

  • subplots_kw – Keyword arguments to pass to plt.subplots().

  • plot_kw – Keyword arguments pass to ax.plot.

Returns:

Figure, axes.