Python find peaks - wrong x axis

前端 未结 0 1064
旧巷少年郎
旧巷少年郎 2021-02-01 16:18

i got the following code:

Frequency = df[\'x [Hz]\']
Spectrum = df[\'test_spec\']

x = Spectrum
peaks, _ = find_peaks(x, distance=20)
plt.plot(peaks, x[peaks], &q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题