Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfschubert/gifcm
Context manager for easy gif creation
https://github.com/mfschubert/gifcm
animation gif matplotlib pil pillow
Last synced: 14 days ago
JSON representation
Context manager for easy gif creation
- Host: GitHub
- URL: https://github.com/mfschubert/gifcm
- Owner: mfschubert
- License: mit
- Created: 2023-07-04T02:25:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T20:13:40.000Z (11 months ago)
- Last Synced: 2024-01-05T21:26:57.483Z (11 months ago)
- Topics: animation, gif, matplotlib, pil, pillow
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gifcm 0.1.0
Gifcm provides a context manager for easy creation of gif animations from matplotlib figures. It does not offer capabilities beyond existing tools such as [gif](https://github.com/maxhumber/gif) or [celluloid](https://github.com/jwkvam/celluloid), but rather a different API making use of context managers.
## Installation
```
pip install gifcm
```## Usage
Example usage is as follows:
```python
animated_figure = AnimatedFigure(figure=plt.figure())for i in range(10):
with animated_figure.frame():
plt.plot(i, i, "o")animated_figure.save_gif("my_animation.gif")
```