Matplotlib——Plotting the coherence of two signals (plt.subplots(2, 1))
importnumpyasnpimportmatplotlib.pyplotasplt#Fixingrandomstateforreproducibility#指定随机数生成时所用算法开始的整数值np.random.seed(19680801)dt=0.01#0到29等分区间,step是0.01t=np.arange(0,30,dt)#从标准正态分布中返回一个或多个样本值nse1=np.rando