def plotperiodogram(t,x,fs,ax,ttxt):
fax,Pxx = periodogram(x,fs,'hanning')
ax[0].plot(fax,10*np.log10(abs(Pxx)))
ax[0].set_title(ttxt)
ax[1].plot(t,x)
ax[1].set_ylim(-1,1)
ax[1].set_xlabel('time [sec.]')
评论列表
文章目录