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


pip install plotextractor


from plotextractor import process_tarball
plots = process_tarball("/path/to/tarball.tar.gz")
    '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.


Version 0.2.0 (2018-02-07)

  • Ignore hidden/metadata files in the tarball.
  • Handle relative paths in the tarball.

Version 0.1.6 (2016-12-01)

  • Sets the mtime for all members of the tarball to current time before unpacking.

Version 0.1.5 (2016-05-25)

  • Properly raises an exception when no TeX files are found in an archive.
  • More fixes to image path extraction and more robust image handling.

Version 0.1.4 (2016-03-22)

  • Fixes linking images from TeX reference when images are referred to without specifying full relative folder path.

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
plotextractor-0.2.0.tar.gz (10.2 MB) Copy SHA256 hash SHA256 Source None Feb 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page