prsctrl.data.plot.plot_data#
- plot_data(data: PrsData, basename: str | None = None, out_dir: Path | str | None = None, title: str | None = None, **plot_spectrum_kw) None[source]#
Convenience function that generates and saves useful plots.
If the data has
AC <.PrsData.has_AC()andDC <.PrsData.has_DC()data:dI-X/IdI/I,dI-X/I,dI-Y/IdI_I,dI,lock-in-R,theta-corr,lock-in-theta,IErrors of 3.
Modulus plot of
dI-X/IX/Y 2D plot
If the data also has multiple offset measurement, plots offsets over time.
If the data only has
DC <.PrsData.has_DC()data, plots onlyIwith error.- Parameters:
data –
PrsDatadata object.basename – Base filename. Defaults to
the data's full name.out_dir – Output directory. Defaults to the
the data directory.title – Optional title of the plots. If
None, title may is set to data full name.plot_spectrum_kw – Keyword arguments passed to
plot_spectrum().