摘要: import matplotlib.pyplot as plt #这里应该把trace plot 出来,同时,还应该把峰值给plot出来; plt.figure() plt.plot(sigAv, color='red', label='dis') plt.plot(peaks, sigAv[pea 阅读全文
posted @ 2021-06-16 18:27 bH1pJ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #这里应该把trace plot 出来,同时,还应该把峰值给plot出来;plt.figure()plt.plot(sigAv, color='red', label='dis')plt.plot(peaks, sigAv[peaks], "x")plt.sa... 阅读全文
posted @ 2021-06-16 18:27 bH1pJ 阅读(85) 评论(0) 推荐(0) 编辑
摘要: w=2π·f f 阅读全文
posted @ 2021-06-16 18:26 bH1pJ 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 最后使用plt.show()即可 阅读全文
posted @ 2021-06-16 15:52 bH1pJ 阅读(648) 评论(0) 推荐(0) 编辑
摘要: python pycharm如何自动show出图片 踏破铁鞋无ni chu 啊 plt.interactive(True) scientific mode 阅读全文
posted @ 2021-06-16 14:13 bH1pJ 阅读(28) 评论(0) 推荐(0) 编辑
摘要: python pycharm如何自动show出图片 踏破铁鞋无ni chu 啊 plt.interactive(True) 阅读全文
posted @ 2021-06-16 14:14 bH1pJ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 坑 plt.interactive(True) 阅读全文
posted @ 2021-06-16 13:53 bH1pJ 阅读(56) 评论(0) 推荐(0) 编辑
摘要: a = np.array([1,2,3,4,4,5,2,1]) 是np.array而不是arange() 还可以加参数dtype = float 例如a = np.array([1,2,3,4,4,5,2,1],dtype = 'float') ... 阅读全文
posted @ 2021-06-16 12:59 bH1pJ 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 原始信号直接乘上-1. 继续使用find_peak函数 阅读全文
posted @ 2021-06-16 12:43 bH1pJ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #寻找峰谷,并进行标记;sig = bodyPart4['dis'].to_numpy()sigAv = moving_average(sig, 3)#做一下简单的滑动平均plt.plot(sigAv, 'g')np.savetxt(r"D:\PythonPr... 阅读全文
posted @ 2021-06-16 11:36 bH1pJ 阅读(337) 评论(0) 推荐(0) 编辑
摘要: def moving_average(interval, windowsize): window = np.ones(int(windowsize)) / float(windowsize) re = np.convolve(interval, w... 阅读全文
posted @ 2021-06-16 11:35 bH1pJ 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 左上角的坐标X,Y 以及ROI的width和hight 阅读全文
posted @ 2021-06-16 11:34 bH1pJ 阅读(68) 评论(0) 推荐(0) 编辑