Skip to main content

Small library for extracting plots used in scholarly communication.

Project description

Small library for converting and mapping plots in TeX source used in scholarly communication.

Originally part of Invenio https://github.com/inveniosoftware/invenio.

Installation

pip install plotextractor

Usage

from plotextractor import process_tarball
plots = process_tarball("/path/to/tarball.tar.gz")
print(plots[0])
{
    'url': '/path/to/tarball.tar.gz_files/d15-120f3d.png',
    'captions': ['The $\\rho^0$ meson properties: (a) Mass ...']
    'name': 'd15-120f3d',
    'label': 'fig:mass'
}

Known issues

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

Changes

Version 0.1.3 (2016-03-17)

  • Properly supports cases where images are located in a nested folder inside the extracted tarballs root folder.

Version 0.1.2 (2015-12-08)

  • Adds wrapfigure support.

  • Catches problems with image conversions.

  • More robust handling of image rotations in TeX sources.

  • Removes unicode_literals usage.

Version 0.1.1 (2015-12-04)

  • Improves extraction from TeX file by reading files with encoding.

Version 0.1.0 (2015-10-19)

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

plotextractor-0.1.3.tar.gz (3.3 MB view details)

Uploaded Source

File details

Details for the file plotextractor-0.1.3.tar.gz.

File metadata

File hashes

Hashes for plotextractor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3e0dbe15a298d859d17fcd2817a85e3b022c7fac4191fce2967981154d3f5595
MD5 eb8f4c7d55fae06ba4951068fd5dc6b5
BLAKE2b-256 ce63a11022a22f7f8a8a3b3bef469df1d78fb220d88dfd61e69c9fae78f30c25

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