![]()
#PYTHON FFMPEG INSTALL MATPLOTLIB UPDATE#There I soon enough discovered the backends section. import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation fig, ax plt.subplots(1,1) xnp.linspace(np.pi,4np.pi,100) Nlen(x) ax.setxlim(len(x)) ax.setylim(-1.5,1.5) line, ax.plot(,'o-') def init(): tydata(np.ma.array(x:, maskTrue)) return line, def animate(i, args, kwargs): ynp.sin(xi) tdata(np.arange(N),y) update the data return line, ani animation.FuncAnimation(fig, animate, initfuncinit, frames100, interval10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |