Python findpeaks--find maxima of data with adjacency condition

argrelmax() is a Python function that works like Matlab’s “findpeaks” checkout SciPy argrelmax.

More detailed 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().