Registry / ai-ml / mpl-animators

mpl-animators

JSON →
library1.2.4pypypiunverified

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.

pip install mpl-animators
INSTALL
IMPORT
SIG · MPL-ANIMATORS
M
mpl-animators
ai-mlpythonv1.2.4
Install
7.7s avg
Import
Disk
181MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 177.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.7s · import 0.000s · 170MB
181MB installed
● package 181MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FuncAnimation
from mpl_animators import FuncAnimation
from mpl_animators import FuncAnimation

Minimal interactive animation with a slider that controls the frame.

import matplotlib.pyplot as plt from mpl_animators import FuncAnimation fig, ax = plt.subplots() x = [0, 1, 2] y = [0, 1, 4] ln, = ax.plot([], [], 'ro') def update(frame): ln.set_data(x[:frame], y[:frame]) return ln, ani = FuncAnimation(fig, update, frames=3, interval=1000, repeat=False, blit=True) plt.show()
Debug
Known issues
gotchaThe class 'FuncAnimation' in mpl_animators shadows matplotlib's FuncAnimation. If you import both, the last import wins and may break code expecting the standard behavior.
fix
Use explicit import aliasing: from mpl_animators import FuncAnimation as InteractiveAnimation
affects: all
gotchaThe 'blit' parameter is enabled by default in mpl_animators.FuncAnimation, which can cause issues with artists that are not explicitly returned in the update function. For simple animations, set blit=False to avoid invisible updates.
fix
Set blit=False in FuncAnimation constructor if you experience blank frames.
affects: all
gotchaThe library requires matplotlib backend that supports interactive widgets. If using a non-interactive backend (e.g., 'Agg'), the sliders and buttons will not appear.
fix
Ensure interactive backend: import matplotlib; matplotlib.use('TkAgg') or use %matplotlib notebook in Jupyter.
affects: all
Upgrade
Version history
1.2.4latest on PyPI · released Jun 20, 2025
Audit
Dependencies
matplotlibrequiredcore dependency for plotting and animation
Agent activity
1 hits · last 30 days
Meta
1
Resources
mpl-animators — pip install mpl-animators · libregistry