Skip to main content

The easiest way to create animations using plots.

Project description

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 plot2vid

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

for i in range(90):
    # Setting the plot limits
    plt.xlim(0,10000)
    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()

Advanced Usage

You can change different settings of the recorder.

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

Roadmap

  • Support MP4
  • Support AVI
  • Variable FPS

Project details


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.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

plot2vid-1.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plot2vid-1.0.1.tar.gz
  • Upload date:
  • Size: 1.8 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.1.tar.gz
Algorithm Hash digest
SHA256 5feaa5461f4bf6ad6992149764b6d9cb62ceae2157bf76ce7a5246cb3b1c41b1
MD5 10a0c28a51c40fdb543b9d78c407ab51
BLAKE2b-256 460f6aa1dc7b3ae77ef5e80abf05738256e859f4d2115297a736b66bd27755fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plot2vid-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3368c79c053b8624e216d84061b4955a9fb93186108b0cd03585a0884e9e0e02
MD5 96eaaa1621af2fdbbc5798bdc4025a1b
BLAKE2b-256 10e3b688a9591c090affb5213c3f776635ab0ebb14460674ab891ab0eb956de7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page