{"library":"mpl-animators","title":"mpl-animators","description":"An interactive animation framework for matplotlib providing convenient classes to create animations with sliders and buttons. Current version 1.2.4, requires Python >=3.10. Released on PyPI with periodic updates.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mpl-animators"],"cli":null},"imports":["from mpl_animators import FuncAnimation"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import matplotlib.pyplot as plt\nfrom mpl_animators import FuncAnimation\n\nfig, ax = plt.subplots()\nx = [0, 1, 2]\ny = [0, 1, 4]\nln, = ax.plot([], [], 'ro')\n\ndef update(frame):\n    ln.set_data(x[:frame], y[:frame])\n    return ln,\n\nani = FuncAnimation(fig, update, frames=3, interval=1000, repeat=False, blit=True)\nplt.show()","lang":"python","description":"Minimal interactive animation with a slider that controls the frame.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}