import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as ma # 准备数据 sample_number = 801*2 # 建议乘个20以下的数,理论不能超过1000,实际上超过20就有问题 data_length = 801 x_lim = 20 # 横坐标显示上限(会随着更新移动到data_length) y_lim = 160 # 纵坐标显示上限...
3 import matplotlib.pyplot as plt 4 from numpy.random import randn 5 6 x = range(100) 7 y = randn(100) 8 9 fig = plt.figure() 10 ax = fig.add_subplot(1,1,1) 11 ax.plot(x,y,'k--') 12 ax.set_xticks([0,25,50,75,100]) 13 ax.set_xticklabels(['one','two','three...