¡@

Home 

python Programming Glossary: vls

Animated title in matplotlib

http://stackoverflow.com/questions/17558096/animated-title-in-matplotlib

matplotlib.animation as animation import numpy as np vls np.linspace 0 2 2 np.pi 100 fig plt.figure img plt.plot np.sin.. 0 2 2 np.pi 100 fig plt.figure img plt.plot np.sin vls ax plt.axes ax.set_xlim 0 2 2 np.pi #ttl ax.set_title '' animated.. return img ttl def func n ttl.set_text str n img.set_data vls np.sin vls .02 n 2 np.pi return img ttl ani animation.FuncAnimation..