Skip to main content

tools for extracting data from vector plots

Project description

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.

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

vector_plot_extractor-0.1.4.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vector_plot_extractor-0.1.4-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file vector_plot_extractor-0.1.4.tar.gz.

File metadata

  • Download URL: vector_plot_extractor-0.1.4.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vector_plot_extractor-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e1e1223b9fe854936aeb4478339f5ca5fcebe2282d2f4540073677c11b8003cd
MD5 08ce5c31c681600347fa8fd4674fad50
BLAKE2b-256 9d0a17ee71d050a4c8dcf0d20921f4c94f49e9b01354affacda631af8ee6c33a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vector_plot_extractor-0.1.4.tar.gz:

Publisher: python-publish.yml on ycwang-astro/vector-plot-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vector_plot_extractor-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for vector_plot_extractor-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b5076dea56ebf264b23e8ccee8c4df97b21d5136b1d3de6793a7111006240449
MD5 ac57f5f58c878e67ca1d42f80ebb1f2d
BLAKE2b-256 41339b4dc404558efe6f3c681221f84fb1bbfc8938b5e0a7c5afe852b1b94920

See more details on using hashes here.

Provenance

The following attestation bundles were made for vector_plot_extractor-0.1.4-py3-none-any.whl:

Publisher: python-publish.yml on ycwang-astro/vector-plot-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page