prsctrl.data.plot.plot_spectrum#
- plot_spectrum(data: PrsData | str | ndarray, columns=None, title: str | None = None, what=['dI-X_I'], fig=None, ax=None, subplot_kw={}, use_scales: dict | bool = True, mode=None, transforms=None, xlabel=True, add_second_xax=True, **plot_spectrum_kw)[source]#
Plot recorded data :param data: Path to the data directory or numpy array with columns PrsData.default_spectrum_columns :param title: Title for the plot. If None, try to use the metadata[name] of the data if the type is PrsData. The default is None. :return: fig Matplotlib figure object.