Skip to main content

build status python 3.6 license apache

pyrecorder

You can find the detailed documentation here: https://anyoptimization.com/projects/pyrecorder/

Installation

The framework is available at the PyPi Repository:

pip install -U pyrecorder

Usage

It’s as simple as it should be. Initialize a Recorder object with a Writer and store plots by calling record().

import matplotlib.pyplot as plt
import numpy as np

from pyrecorder.recorder import Recorder
from pyrecorder.writers.video import Video

# create a writer object (here, mp4)
writer = Video("video.mp4")

# use the with statement to close the recorder when done
with Recorder(writer) as rec:

    # record 10 different snapshots
    for t in range(10):

        # create the plot (here, using matplotlib)
        X = np.random.random((50, 2))
        plt.scatter(X[:, 0], X[:, 1], facecolor="none", edgecolor="red")

        # use the record to store the current plot
        rec.record()
https://anyoptimization.com/projects/pyrecorder/_static/usage.gif

Contact

Feel free to contact me if you have any question:

Julian Blank (blankjul [at] egr.msu.edu)
Michigan State University
Computational Optimization and Innovation Laboratory (COIN)
East Lansing, MI 48824, USA

Release files for pyrecorder 0.2.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 pyrecorder 0.2.1
File Size Uploaded
pyrecorder-0.2.1.tar.gz 9.5 kB Details

Release files / pyrecorder-0.2.1.tar.gz

Download URL pyrecorder-0.2.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6da2f8bd3e1b72802ee93c524d6aef01900ebb85cb9aaaf0338c33ee1f1db29
BLAKE2b-256 checksum
How to use checksums
fdfdc0bdc3b6ce2109b062c29acd3292b08fd70f5e3de5717427619cfd269559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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