Animation of matplotlib images
Project description
Helper functions to make animations of images with corresponding traces and labels using matplotlib
Example use:
from Animate.Movie import Movie
import numpy as np
m = Movie(dt=1.0 / 14, height_ratio=1.5)
img = np.random.randint(10, size=(40, 5, 5))
m.add_image(img, style='dark_img')
m.add_axis(x_label='time (s)', y_label='value')
m.add_trace(img.mean(axis=(1, 2)))
m.save('path/to/file/with_name', fps=1)
Testing
pytest --pep8 --cov=Animate --cov-report html
Deploying
bumpversion patch
python setup sdist
twine upload \dist\...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
animateimages-0.2.3.tar.gz
(8.9 kB
view hashes)