Skip to content

jpetazzo/scangraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scangraph

This tool allows to retrieve the position of data points as plotted on a raster graph.

Usage

Let's assume you want to retrieve the data on this graph: http://mallit.fr.umn.edu/fr4218/assigns/excelEG/data_plot.gif (this is just a random image found when looking for "data plot" in Google Images).

Follow those steps:

  1. Download scangraph (you can of course get the code with git if you prefer that).
  2. Uncompress the archive in some directory on your system.
  3. Put the image file in the same directory.
  4. Open scangraph.html (from your local directory) in your browser.
  5. Click on the "file" field, and select the image file. The image file should now appear in the scangraph page.
  6. Click on the lower left corner of the graph. This will be x0,y0.
  7. Click on the upper right corner of the graph. This will be x1,y1.
  8. Enter the coordinates of the two previous points in the corresponding text fields.
  9. If one (or both) axis uses a logarithmic scale, tick the corresponding checkbox.
  10. Click on as many points as you want on the image. Each time you click, the point coordinates will be added to a list on the right. A red dot will be shown on the places where you clicked.

To restart, just hit Ctrl+R in your browser.

Caveats

You cannot remove a point once you have clicked on it, unless you restart from the beginning.

The tool can only handle the image formats understood by your browser (obviously).

If you try to load a second image without restarting from the beginning, unexpected things might happen.

You need a pretty recent browser (supporting <canvas>).

This uses JQuery and JCanvas.

About

Retrieve point coordinates from a raster plot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published