Skip to main content

plotextractor

About

A small library for extracting plots used in scholarly communication.

Install

$ pip install plotextractor

Usage

To extract plots from a tarball:

>>> from plotextractor import process_tarball
>>> plots = process_tarball('./1503.07589.tar.gz')
>>> print(plots[0])
{
    'captions': [
        u'Scans of twice the negative log-likelihood ratio $-2\\ln\\Lambda(\\mH)$ as functions of the Higgs boson mass \\mH\\ for the ATLAS and CMS combination of the \\hgg\\ (red), \\hZZllll\\ (blue), and combined (black) channels. The dashed curves show the results accounting for statistical uncertainties only, with all nuisance parameters associated with systematic uncertainties fixed to their best-fit values. The 1 and 2 standard deviation limits are indicated by the intersections of the horizontal lines at 1 and 4, respectively, with the log-likelihood scan curves.',
    ],
    'label': u'figure_LHC_combined_obs',
    'name': 'LHC_combined_obs_unblind_final',
    'original_url': './1503.07589.tar.gz_files/LHC_combined_obs_unblind_final.pdf',
    'url': './1503.07589.tar.gz_files/LHC_combined_obs_unblind_final.png',
}

Notes

If you experience frequent DelegateError errors you may need to update your version of GhostScript.

License

GPLv2

Local Development with docker

Build it using

docker build -t plotextractor  .

Spin up container with library installed

docker run -it plotextractor

Run tests

poetry run pytest .

Release files for plotextractor 1.0.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotextractor 1.0.24
File Size Uploaded
plotextractor-1.0.24.tar.gz 24.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotextractor 1.0.24
File Interpreter ABI Platform
plotextractor-1.0.24-py3-none-any.whl Python 3 none any Details

Total release size: 54.3 kB

Release files / plotextractor-1.0.24.tar.gz

Download URL plotextractor-1.0.24.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0b017410f65042f7a7847af10c2a3f2d34e5a7540389841e2a55204e123d3c61
BLAKE2b-256 checksum
How to use checksums
65d7f6487347fb8c35b6411bd11a757131f0bc45b0d07e075b74ef36a1653379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / plotextractor-1.0.24-py3-none-any.whl

Download URL plotextractor-1.0.24-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e4ff17f99ea2a0049a1ce15b1629029c8a9063cf0de420af91c29118a59ea14
BLAKE2b-256 checksum
How to use checksums
471d64d07ca7d38f2a163bd177c1cbcec87776f07ae83eb2691ae0426698213c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.24 This release

2 release files

1.0.23

1 release file

1.0.22

1 release file

1.0.21

1 release file

1.0.20

1 release file

1.0.19

1 release file

1.0.18

1 release file

1.0.17

1 release file

1.0.16

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

1 release file

1.0.9

2 release files

1.0.8

2 release files

1.0.1

1 release file

1.0.0

1 release file

0.3.14

2 release files

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.1

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page