From a static plot:
- we define the Y, then X range bounds with the mouse, then...
- we give the bounds numeric values with the keyboard, then...
- we glean one or multiple (x,y) series with the mouse,
- writing each series to a JSON file.
Download this repository.
Save an image file to the Processing
'data' folder.
Change the path
variable, and press Run.
Follow the directions in the console.
Consider the image from Betchkal et al. 2022, Figure 10, which shows species richness,
The image is included with the repository. Say we're replicating this experiment and we'd like to recover the co-ordinates of points from this plot without access to the original data. The process requires mapping the image co-ordinates back into the measurement co-ordinates. Public_DataGlean_I
allows us to perform this task.
The first step involves clicking each linear-scale, orthogonal axis bound in sequence: {Y_max
, Y_min
, X_min
, X_max
}, for which Public_DataGlean_I
will print the pixel coordinates to the console. The user may choose any reference point on the original image as long as the set bounds the data to be gleaned. The green linear guides indicate the user's mouseX
and mouseY
positions, shown in the image below before clicking X_max
(
The second step simply involves clicking a series of points to write their estimated figure co-cordinates to a file. The user begins data entry for a series by pressing the 'S' key. As in step one, the green linear guides follow the user's mouseX
and mouseY
positions. The image below shows the console output immediately after clicking the red point labeled 'TKAN' co-ordinates of roughly (17.0, 17.3). To begin a new series, press 'S' again. To close the file/program, press 'C'.
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.