Skip to main content

plot2vid

The easiest way to create animations using plots.

This small Python package lets you store seperate matplotlib plots to create a video.

Installation

pip install plot2vid

Basic Usage

from plot2vid import PlotRecorder
import matplotlib.pyplot as plt

# Setup
recorder = PlotRecorder("out.mp4")
fig = plt.figure()

for i in range(90):
    # Setting the plot limits
    plt.xlim(0,100)
    plt.ylim(0,100)

    # Plotting
    plt.scatter([i], [i])

    # Recording the frame
    recorder.add(fig)

    # Clearing the plot
    plt.clf()

# Storing the result
recorder.close()

The above code creates this video.

ezgif-5-c21b239e33

Advanced Usage

You can change the different settings of the recorder.

recorder = plot2vid.PlotRecorder("out.mp4", fps=20)

Roadmap

  • Support MP4
  • Support AVI
  • Variable FPS

Metadata

Release files for plot2vid 1.0.3

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

Source distribution (sdist)

Source distribution for plot2vid 1.0.3
File Size Uploaded Provenance Actions
plot2vid-1.0.3.tar.gz 2.1 kB Without provenance Details for plot2vid-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plot2vid 1.0.3
File Interpreter ABI Platform Actions
plot2vid-1.0.3-py3-none-any.whl Python 3 none any Details for plot2vid-1.0.3-py3-none-any.whl

Total release size: 4.9 kB

Release files / plot2vid-1.0.3.tar.gz

Download URL plot2vid-1.0.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
22ad7bf807f8177d7dba0928f44e5ed3bef8f8e9e6883906e0fbb132d9abdacb
BLAKE2b-256 checksum
How to use checksums
6915a3d12c5cd37415fc21abd433d5389b92ea7fcd66a76b3ebbcfd5471fd7e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / plot2vid-1.0.3-py3-none-any.whl

Download URL plot2vid-1.0.3-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bc26966f7f38da2201c130e55577f87f03d3ba4ff98142417b5899e5c3a0052
BLAKE2b-256 checksum
How to use checksums
1fe9fecbc0f6d7f959c972f57daf1b30827aee521c7b918c8dfad2770f0623a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Security for plot2vid 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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