prsctrl.data.plot.plot_offset_transients#
- plot_offset_transients(data: PrsData, what: list[str] = ['lock-in-R_raw'], convert_idx2time: bool = True, subplots_kw: dict | None = None, **plot_kw) tuple[Figure, ndarray[tuple[Any, ...], dtype[Axes]]][source]#
Plot the offset from a pure offset measurement, one subplot per key.
The transients are merged with
merge_offset_transients().- Parameters:
data – Pure offset measurement data.
what – Column keys to plot, one subplot per key.
convert_idx2time – If
True, convert the sample indices to time using the sample rate from the metadata.subplots_kw – Keyword arguments to pass to
plt.subplots().plot_kw – Keyword arguments passed to the plotting function of the axes.
- Raises:
KeyError – If converting to time and the sample rate is not found in the metadata.
- Returns:
Figure, axes.