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)
Metadata
Release files for trepro 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trepro-1.0.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trepro-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / trepro-1.0.1.tar.gz
| Download URL | trepro-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9082862738ad5a8a43b9be8eff4076d26a8125cfce230fc1b9d0b4a0d467e36
|
|
BLAKE2b-256 checksum How to use checksums |
cd42558f0fb819f47d70d9bb1c00b1c7be916fee9a9762790676fbaf865177ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2
|
Release files / trepro-1.0.1-py3-none-any.whl
| Download URL | trepro-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80cb8988812ce5375614cbef9f79db0cda5a02a438a0a85dc70f95a71937f84b
|
|
BLAKE2b-256 checksum How to use checksums |
8cfb1c3d9c395ad4bc8c9707b17ff7d2e2ad28b08f743cd4f23df5bc0eae16f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.18.2 CPython/3.10.14 Linux/5.15.153.1-microsoft-standard-WSL2
|