An easy method to save code and data that generates scientific plots.
Project description
plotarchive
Plotarchive is a simple package which aims to assist plotters remeber what code created which figure. We aim to eliminate the problem where the code you used to make a figure is lost or deleted. Plotarchive serialises the data used to make the figure, along with the generating function, and the entire code of the project.
To save your plot, wrap it in a function and apply the plotarchive.archive decorator. Plotarchive will save all the necessary information to recreate your plot.
import plotarchive
import matplotlib.pyplot as plt
@plotarchive.archive(file='myplot.pa')
def plot(x, y, title):
plt.figure()
plt.plot(x,y)
plt.title(title)
plt.show()
plot([1,2,3], [1,2,3])
To re-generate your plot:
import plotarchive
plotarchive.extract('myplot.pa')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file plotarchive-0.0.9-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 399.0 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea065a3f0e544be84a86e6710d4c9ee58fe135ccd53b01ac6e6185ba05b1ff20 |
|
MD5 | fa235de59b27ed686c27291226ad37af |
|
BLAKE2b-256 | 112332bda7740f855a3dfc1f745b7805d003e5873195e23c5e702927f6aa5292 |
File details
Details for the file plotarchive-0.0.9-cp311-cp311-musllinux_1_1_i686.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp311-cp311-musllinux_1_1_i686.whl
- Upload date:
- Size: 384.2 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad5252129d800c49fc05ff987ea92c8d4df29824257400cd282ee0cfa4f34da |
|
MD5 | 23db8ac79438f686b2d17aa3ae85c0b0 |
|
BLAKE2b-256 | 8bae0507ff538e31a51dae1a285560ceef41a03dcfe5c52f7ae8e21b33b9402b |
File details
Details for the file plotarchive-0.0.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 385.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d68bb98aa13e03ce65a142d2dd8ba0591a79e607cf16d3b824abd8444e52ad |
|
MD5 | da82e302b29dc69f7eec0f5f52d9c6fb |
|
BLAKE2b-256 | 237b6685ec83df3da26d48088849e2738f750f94afc6c04931f5524cd157c6eb |
File details
Details for the file plotarchive-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 366.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c33eb6eacb2b1c6b52ab6500252fe10c41eea6918443dfbf4d2011085034f6 |
|
MD5 | 03ed84549a0669941c9e83354972f80a |
|
BLAKE2b-256 | 9550514ec333d10964a3cdd31d4569ff5531d5208084e48c3704ed267cbefc3a |
File details
Details for the file plotarchive-0.0.9-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 375.4 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98564c9117cff96eff9afe667a5cb293583f3efd3fbfa13aab4f6cc9f85468d |
|
MD5 | 8267299555bef29134efbe2f7629d90d |
|
BLAKE2b-256 | 23eefc9c4280a7d74a3b6df130343c845400a56bd331d445b50356886c6e9ffc |
File details
Details for the file plotarchive-0.0.9-cp310-cp310-musllinux_1_1_i686.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp310-cp310-musllinux_1_1_i686.whl
- Upload date:
- Size: 360.0 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e3273ec63417106d96abe03f63930d27616e00757b4afc18faa09ab4c63808 |
|
MD5 | a164e23169444e4d2465ace8e7e46699 |
|
BLAKE2b-256 | 54ecc07a30ffbc21f4f56c74d8f1eb5abe360c5ca99a6cdc61d52278db987008 |
File details
Details for the file plotarchive-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d4bf5ea2d689036c87ca314c5232166c6434891fcfee19afe40e1315ba71fab |
|
MD5 | 329814cc16d67e4d8dd9209efbc864d5 |
|
BLAKE2b-256 | f2f5051da579f4769a6ebfd244543b13b3a360a33c25e3f9c8154a5269c4853e |
File details
Details for the file plotarchive-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: plotarchive-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 341.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f14d07ebb361ffba9055e530519646f6bff3b2a17e7160e5d09d0e41ee5b01 |
|
MD5 | a8cc57d712f7bdfdc2f1181fe61e1eb2 |
|
BLAKE2b-256 | 4350c7dab02a74a21a1080988f8de4c222b59b0e35e01baedbb2138cc45ce657 |