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 Distribution

plotarchive-0.0.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

plotarchive-0.0.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file plotarchive-0.0.5.tar.gz.

File metadata

  • Download URL: plotarchive-0.0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for plotarchive-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b80cb9efbd9d57ef15f1e3ecb52136c89212164fe5f34d735c3a6ea22c0ead9a
MD5 7efa2a5b5f40cd85607de90e4d8ca215
BLAKE2b-256 91d2a974b5fd2b8579e2724aa5695aa8f3dbc5d1e94232e385dd5b2f0b48554b

See more details on using hashes here.

File details

Details for the file plotarchive-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: plotarchive-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for plotarchive-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 96a2f3baaae45c3606aa732bafc8e94502d9c6ad31399abdabc4905b18221c9e
MD5 2e5b2c424f405164e954bd36195b0f70
BLAKE2b-256 d113c5066b2c51f320fd33dee26afd56686a5464b2c1ab81ec6c8db8c6baa6a4

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