Skip to main content

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 ✨


!!! Supports only .pdf & .png !!!


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])

- # Supports only .pdf & .png, other formats will behave as-is
+ patch_savefig() # patch savefig to save metadata

plt.savefig("test.png")

# --- load saved figure ---

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

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

Uploaded Source

Built Distribution

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

trepro-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trepro-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for trepro-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c9082862738ad5a8a43b9be8eff4076d26a8125cfce230fc1b9d0b4a0d467e36
MD5 219fdb0f972f5f1456204aa55821de63
BLAKE2b-256 cd42558f0fb819f47d70d9bb1c00b1c7be916fee9a9762790676fbaf865177ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trepro-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for trepro-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80cb8988812ce5375614cbef9f79db0cda5a02a438a0a85dc70f95a71937f84b
MD5 86c9bb57c3c07b9410b77aabad632ab9
BLAKE2b-256 8cfb1c3d9c395ad4bc8c9707b17ff7d2e2ad28b08f743cd4f23df5bc0eae16f3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.1.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