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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plot2vid-1.0.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plot2vid-1.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file plot2vid-1.0.3.tar.gz.

File metadata

  • Download URL: plot2vid-1.0.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for plot2vid-1.0.3.tar.gz
Algorithm Hash digest
SHA256 22ad7bf807f8177d7dba0928f44e5ed3bef8f8e9e6883906e0fbb132d9abdacb
MD5 6e19575450f9b6938ceb9c25311299c0
BLAKE2b-256 6915a3d12c5cd37415fc21abd433d5389b92ea7fcd66a76b3ebbcfd5471fd7e9

See more details on using hashes here.

File details

Details for the file plot2vid-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: plot2vid-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for plot2vid-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc26966f7f38da2201c130e55577f87f03d3ba4ff98142417b5899e5c3a0052
MD5 ca65b6ad49fd9502c000b3028b70c080
BLAKE2b-256 1fe9fecbc0f6d7f959c972f57daf1b30827aee521c7b918c8dfad2770f0623a6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page