Skip to main content

vector-plot-extractor

tools for extracting data from vector plots

PyPI version DOI:10.5281/zenodo.10588057

This Python package has been tested on various PDF files, including example.pdf, under normal usage conditions. However, it has not undergone comprehensive testing and optimization yet. I will improve it in the future. Your suggestions and contributions are welcome.

A step-by-step tutorial is provided to demonstrate typical usage of the tool.

Dependencies

This package mainly depends on the following packages:

  • matplotlib
  • numpy
  • pymupdf

These will be automatically installed when running pip install.

Installation

To install this package, you can simply use pip:

pip install vector-plot-extractor

If you would like to try the latest development version, you may directly install from the project repository by:

pip install git+https://github.com/ycwang-astro/vector-plot-extractor.git

Usage

To execute the main UI, run this in your terminal

vpextract path/to/figure/file

To import this package in a Python script:

import vpextractor

Limitations/caveats

It can be tricky to decide the underlying data for scatter plots. For some markers, there can be systematic errors (within the size of the markers) in the extracted data. A future version will add a UI with which you may manually select the relative position of data points for each marker.

It is at your discretion to verify the accuracy of the output results!

Notice

A bug in version 0.1.1 causes minor errors in the extracted scatter data. If you have used 0.1.1 version, follow the steps in the changelog ("Notes" under "0.1.2") to fix it.

Release files for vector-plot-extractor 0.1.4

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

Source distribution (sdist)

Source distribution for vector-plot-extractor 0.1.4
File Size Uploaded
vector_plot_extractor-0.1.4.tar.gz 32.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vector-plot-extractor 0.1.4
File Interpreter ABI Platform
vector_plot_extractor-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 68.1 kB

Release files / vector_plot_extractor-0.1.4.tar.gz

Download URL vector_plot_extractor-0.1.4.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1e1223b9fe854936aeb4478339f5ca5fcebe2282d2f4540073677c11b8003cd
BLAKE2b-256 checksum
How to use checksums
9d0a17ee71d050a4c8dcf0d20921f4c94f49e9b01354affacda631af8ee6c33a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2025.

Transparency log

Release files / vector_plot_extractor-0.1.4-py3-none-any.whl

Download URL vector_plot_extractor-0.1.4-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5076dea56ebf264b23e8ccee8c4df97b21d5136b1d3de6793a7111006240449
BLAKE2b-256 checksum
How to use checksums
41339b4dc404558efe6f3c681221f84fb1bbfc8938b5e0a7c5afe852b1b94920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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