Skip to main content

Towards better reproductions, less effort.

Project description

Trepro

Reproduce everything...   •   pip install trepro

codecov


What Trepro afford:

  • Save and load matplotlib figures with metadata, so you can recover the state of the figure whenever you want.

  • More coming soon...

Using Trepro

Install

pip install trepro

✨ Recover Figure with Metadata ✨

alt text

from matplotlib import pyplot as plt
+ from trepro.matplotlib import load_saved_figure, patch_savefig

fig, ax = plt.subplots()
ax.plot([1, 2, 3], [4, 5, 6])

+ patch_savefig() # patch savefig to save metadata

plt.savefig("test.png")

# --- load saved figure ---

+ fig, metadata = load_saved_figure("test.png")
+ print(metadata)

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

trepro-1.0.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

trepro-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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