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 .
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| plotextractor-1.0.24.tar.gz | 24.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for plotextractor 1.0.24
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.