matplotlib.animation 画动态图
import matplotlib.animation as animationimport matplotlib.pyplot as pltimport numpy as npfig = plt.figure()ax1 = fig.add_subplot(1, 1, 1)def animate(i): data = open('stock.txt', 'r').read() lines = data.split('\n') xs = [] ys = [...