{"repo":"dilawar/PlotDigitizer","free":true,"listed":false,"github":"https://github.com/dilawar/PlotDigitizer","clone":"git clone https://github.com/dilawar/PlotDigitizer.git","description":"A Python utility to digitize plots. A web-utility for non-batch mode https://tools.dilawars.me/tool/plot-extractor","language":"Python","stars":173,"topics":["digitization","data-extraction","python3","image-processing"],"license":"GPL-3.0","category":"media-processing","readme_excerpt":"A Python3 command line utility to digitize plots in batch mode. This utility is useful when you have a lot of similar plots such as EEG, ECG recordings. See examples below. For one-off use cases, you can use my web utilty Plot Extractor. Installation Preparing image Crop the image and leave only axis and trajectories. I used the gthumb utility on Linux. You can also use imagemagick or gimp . The following image is from MacFadden and Koshland, PNAS 1990 after trimming. One should also remove top and right axes. I didn't because I want to highlight the limitation of this tool! Run We need at least three points ( -p option) to map x- and y-axis onto the image. In the example above, these are 0,0 (where x-axis and y-axis intersect) , 10,0 (a point on the x-axis), and 0,1 (a point on the y-axis). To map these points on the image, you will be asked to click on these points. Make sure to click in the same order and click on the points as precisely as you could. Any error in this step will propagate. If you don't have 0,0 in your image, you must provide 4 points: 2 on the x-axis and 2 on the y-axis. The data points will be dumped to a CSV file specified by --output /path/to/file.csv . If --plot output.png is passed, a plot of the extracted data points will be saved to output.png . This requires matplotlib. Very useful when debugging/testing. Notice the error near the right y-axis. Using in batch mode You can pass the coordinates of points in the image at the command prompt. This allo","default_branch":null,"files":null,"tree":[],"storefront":"/r/dilawar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dilawar/PlotDigitizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}