convnwb.plts.timestamps.plot_peaks

convnwb.plts.timestamps.plot_peaks(data, peak_inds, peak_heights, ax=None, **plt_kwargs)[source]

Plot detected peaks on a time series.

Parameters:
data1d array

Time series data.

peak_inds1d array

Indices of the detected peaks.

peak_heights1d array

Heights of the detected peaks.

axAxes, optional

Axis object upon which to plot.

plt_kwargs

Additional arguments to pass into the plot function.