Skip to main content

gif

Installation
pip install gif
Usage
import random
from matplotlib import pyplot as plt

import gif

Decorate your plotting function with gif.frame:

@gif.frame
def plot(x, y):
    plt.figure(figsize=(5, 5))
    plt.scatter(x, y)
    plt.xlim((0, 100))
    plt.ylim((0, 100))

Build a bunch of frames:

frames = []
for _ in range(50):
    n = 10
    x = [random.randint(0, 100) for _ in range(10)]
    y = [random.randint(0, 100) for _ in range(10)]
    frame = plot(x, y)
    frames.append(frame)

Finally, save the gif:

gif.save(frames, 'yay.gif')

Release files for gif 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gif 0.1
File Size Uploaded
gif-0.1.tar.gz 148.8 kB Details

Release files / gif-0.1.tar.gz

Download URL gif-0.1.tar.gz
Size 148.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34d501d7d6a3a38eb6116f7c9a1e9c9cdc981cf7a6724f959a3ff65f91eb9ab6
BLAKE2b-256 checksum
How to use checksums
d6b3d96618e2ff4411d201318d0946225f67a408852b178c4c777e9ce21b000c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

22.5.0

2 release files

3.0.0

1 release file

2.0.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page