Towards better reproductions, less effort.
Project description
Trepro
Reproduce everything... •pip install trepro
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 !!!
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)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9082862738ad5a8a43b9be8eff4076d26a8125cfce230fc1b9d0b4a0d467e36
|
|
| MD5 |
219fdb0f972f5f1456204aa55821de63
|
|
| BLAKE2b-256 |
cd42558f0fb819f47d70d9bb1c00b1c7be916fee9a9762790676fbaf865177ec
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80cb8988812ce5375614cbef9f79db0cda5a02a438a0a85dc70f95a71937f84b
|
|
| MD5 |
86c9bb57c3c07b9410b77aabad632ab9
|
|
| BLAKE2b-256 |
8cfb1c3d9c395ad4bc8c9707b17ff7d2e2ad28b08f743cd4f23df5bc0eae16f3
|