tools for extracting data from vector plots
Project description
vector-plot-extractor
tools for extracting data from vector plots
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1e1223b9fe854936aeb4478339f5ca5fcebe2282d2f4540073677c11b8003cd
|
|
| MD5 |
08ce5c31c681600347fa8fd4674fad50
|
|
| BLAKE2b-256 |
9d0a17ee71d050a4c8dcf0d20921f4c94f49e9b01354affacda631af8ee6c33a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vector_plot_extractor-0.1.4.tar.gz -
Subject digest:
e1e1223b9fe854936aeb4478339f5ca5fcebe2282d2f4540073677c11b8003cd - Sigstore transparency entry: 295207135
- Sigstore integration time:
-
Permalink:
ycwang-astro/vector-plot-extractor@4b6783ddaa023705aaf3778b40a344f8813ffa20 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ycwang-astro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4b6783ddaa023705aaf3778b40a344f8813ffa20 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file vector_plot_extractor-0.1.4-py3-none-any.whl.
File metadata
- Download URL: vector_plot_extractor-0.1.4-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5076dea56ebf264b23e8ccee8c4df97b21d5136b1d3de6793a7111006240449
|
|
| MD5 |
ac57f5f58c878e67ca1d42f80ebb1f2d
|
|
| BLAKE2b-256 |
41339b4dc404558efe6f3c681221f84fb1bbfc8938b5e0a7c5afe852b1b94920
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vector_plot_extractor-0.1.4-py3-none-any.whl -
Subject digest:
b5076dea56ebf264b23e8ccee8c4df97b21d5136b1d3de6793a7111006240449 - Sigstore transparency entry: 295207142
- Sigstore integration time:
-
Permalink:
ycwang-astro/vector-plot-extractor@4b6783ddaa023705aaf3778b40a344f8813ffa20 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ycwang-astro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4b6783ddaa023705aaf3778b40a344f8813ffa20 -
Trigger Event:
workflow_dispatch
-
Statement type: