gastropy.plot_artifacts#
- gastropy.plot_artifacts(phase, times, artifact_info, ax=None)[source]#
Plot phase time series with artifact regions highlighted.
- Parameters:
phase (array_like) – Instantaneous phase in radians.
times (array_like) – Time values in seconds.
artifact_info (dict) – Output of
detect_phase_artifacts. Must containartifact_segmentskey.ax (matplotlib.axes.Axes, optional) – Axes to plot on. If None, creates a new figure.
- Returns:
fig (matplotlib.figure.Figure)
ax (matplotlib.axes.Axes)