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 ✨
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
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.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
trepro-1.0.0-py3-none-any.whl
(3.4 kB
view hashes)