Skip to main content

An easy method to save code and data that generates scientific plots.

Project description

plotarchive v0.0.2

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.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plotarchive-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotarchive-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 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.47.0 CPython/3.8.3

File hashes

Hashes for plotarchive-0.0.3.tar.gz
Algorithm Hash digest
SHA256 86a0172e0a76ac0dc2aaa38380381544f5e967003619e6ef0154caa5bf26bab3
MD5 5a1a597cba1ee6d325c1d3a7aa617a40
BLAKE2b-256 d6d346bd9e4576677171269c8c4cac5d0e0e5d74195930863d1090269785643a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotarchive-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.47.0 CPython/3.8.3

File hashes

Hashes for plotarchive-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51a368a2a7520913564f8c45b3fd5f0bd83a761ba16eba3f197084e00d96fef1
MD5 08ad8f5eb503319bc9715e262658e016
BLAKE2b-256 a9c73adaa40fd51dd766ba6ffee2996447149098fcb898ed75edca2a504e70f0

See more details on using hashes here.

Supported by

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