Python findpeaks find maxima

SciPy argrelmax is a Python function that works like Matlab’s “findpeaks” checkout Discussion of Python vs. Matlab vs. Octave with code.

Python Matplotlib line plot

Python findpeaks()

Compare Matlab & Octave peak finding:

The example does not demonstrate the need to filter the data in the case of highly noisy data, which may be accomplished with a Savitzky-Golay filter.

data with peaks highlighted in Matlab

Matlab findpeaks().