Matplotlib——Plotting the coherence of two signals (plt.subplots(2, 1))
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
# 指定随机数生成时所用算法开始的整数值
np.random.seed(19680801)
dt = 0.01
# 0到29等分区间,step是0.01
t = np.arange(0, 30, dt)
# 从标准正态分布中返回一个或多个样本值
nse1 = np.random.randn(len(t))
原创
2020-07-17 22:24:37 ·
381 阅读 ·
0 评论