Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

plotarchive-0.0.9-cp311-cp311-musllinux_1_1_x86_64.whl (399.0 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

plotarchive-0.0.9-cp311-cp311-musllinux_1_1_i686.whl (384.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

plotarchive-0.0.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

plotarchive-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (366.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

plotarchive-0.0.9-cp310-cp310-musllinux_1_1_x86_64.whl (375.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

plotarchive-0.0.9-cp310-cp310-musllinux_1_1_i686.whl (360.0 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

plotarchive-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (359.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

plotarchive-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (341.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

File details

Details for the file plotarchive-0.0.9-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ea065a3f0e544be84a86e6710d4c9ee58fe135ccd53b01ac6e6185ba05b1ff20
MD5 fa235de59b27ed686c27291226ad37af
BLAKE2b-256 112332bda7740f855a3dfc1f745b7805d003e5873195e23c5e702927f6aa5292

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.9-cp311-cp311-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 9ad5252129d800c49fc05ff987ea92c8d4df29824257400cd282ee0cfa4f34da
MD5 23db8ac79438f686b2d17aa3ae85c0b0
BLAKE2b-256 8bae0507ff538e31a51dae1a285560ceef41a03dcfe5c52f7ae8e21b33b9402b

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91d68bb98aa13e03ce65a142d2dd8ba0591a79e607cf16d3b824abd8444e52ad
MD5 da82e302b29dc69f7eec0f5f52d9c6fb
BLAKE2b-256 237b6685ec83df3da26d48088849e2738f750f94afc6c04931f5524cd157c6eb

See more details on using hashes here.

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

File hashes

Hashes for plotarchive-0.0.9-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c2c33eb6eacb2b1c6b52ab6500252fe10c41eea6918443dfbf4d2011085034f6
MD5 03ed84549a0669941c9e83354972f80a
BLAKE2b-256 9550514ec333d10964a3cdd31d4569ff5531d5208084e48c3704ed267cbefc3a

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.9-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f98564c9117cff96eff9afe667a5cb293583f3efd3fbfa13aab4f6cc9f85468d
MD5 8267299555bef29134efbe2f7629d90d
BLAKE2b-256 23eefc9c4280a7d74a3b6df130343c845400a56bd331d445b50356886c6e9ffc

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.9-cp310-cp310-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 21e3273ec63417106d96abe03f63930d27616e00757b4afc18faa09ab4c63808
MD5 a164e23169444e4d2465ace8e7e46699
BLAKE2b-256 54ecc07a30ffbc21f4f56c74d8f1eb5abe360c5ca99a6cdc61d52278db987008

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for plotarchive-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d4bf5ea2d689036c87ca314c5232166c6434891fcfee19afe40e1315ba71fab
MD5 329814cc16d67e4d8dd9209efbc864d5
BLAKE2b-256 f2f5051da579f4769a6ebfd244543b13b3a360a33c25e3f9c8154a5269c4853e

See more details on using hashes here.

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

File hashes

Hashes for plotarchive-0.0.9-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b1f14d07ebb361ffba9055e530519646f6bff3b2a17e7160e5d09d0e41ee5b01
MD5 a8cc57d712f7bdfdc2f1181fe61e1eb2
BLAKE2b-256 4350c7dab02a74a21a1080988f8de4c222b59b0e35e01baedbb2138cc45ce657

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page