How to Extract Data From a Chart Image (Plot Digitizing)
Recover numbers from charts in papers and screenshots: calibration, log scales, auto-tracing, accuracy and good research practice.
&c=%230e7490&k=images)
How to Extract Data From a Chart Image (Plot Digitizing)
Sometimes the data you need exists only as a picture: a figure in a scanned journal article, a chart in a PDF report, a screenshot of a dashboard. Plot digitizing, recovering numbers from chart images, is a standard technique in research, especially for systematic reviews and meta-analyses. Done carefully, it is surprisingly accurate.
How it works
A chart maps data values to pixel positions. If you know the pixel positions of two known values on each axis, you can convert any pixel back into a data value by simple proportion. On a logarithmic axis, the same proportion applies to the logarithms of the values.
Step 1: get the best image
Use the highest resolution available. For PDFs, zoom in before taking a screenshot, or export the page as a high-resolution image. Make sure the chart is not rotated or skewed; a photo of a printed page should be straightened first.
Step 2: calibrate carefully
Pick two labelled tick marks on each axis, as far apart as possible: for example x = 0 and x = 20, y = 0 and y = 50. Click exactly on the tick positions. Calibration errors affect every value, so zoom in for precision. Check whether either axis is logarithmic; log axes show unevenly spaced ticks such as 1, 10, 100.
Step 3: capture the data
- Line charts: automatic tracing follows a line by its colour, sampling every few pixels. Choose a sampling interval that captures the shape without collecting thousands of redundant points.
- Bar charts: bar detection finds each bar's top edge and converts it to a value.
- Scatter plots and awkward charts: click each point by hand. It is slower but precise.
When several series share a chart, capture each separately and name it.
Step 4: check the results
Compare a few extracted values with labelled values or gridlines. If they are off consistently, recalibrate. Look for outliers caused by gridlines, legends or text with the same colour as the series, and delete them.
Accuracy
With a clear image and careful calibration, extracted values are typically within about 1 percent of the axis range. Accuracy falls with low resolution, thick lines, overlapping series and markers that hide each other. Studies comparing digitizing with original data generally find good agreement, which is why the method is accepted in evidence synthesis, provided it is reported.
Good research practice
- Report that values were digitized from figures, and name the tool.
- Cite the original source of every chart.
- Where possible, ask the authors for the underlying data instead.
- Keep the calibrated images or screenshots as a record of your work.
- Where accuracy matters, have a second person digitize independently and compare.
Other uses
Engineers read curves from component datasheets. Journalists recreate charts from reports to check claims. Teachers turn textbook graphs into data for students to analyse. Analysts rebuild old charts for new presentations.
Common pitfalls
Charts with broken axes, where a section of the scale is skipped, need separate calibration for each part. Error bars and confidence bands can be mistaken for data by colour tracing; capture them as separate series if you need them. Stacked bar charts need subtraction to recover each segment. Legends inside the plot area can share colours with series, so limit the search to the area between calibration lines.
Recording your work
Save the calibrated screenshot, the settings you used and the extracted CSV together. If a reviewer or colleague asks how a number was obtained, you can show exactly where it came from and repeat the extraction.
Limitations
Three-dimensional charts, heavily stylised infographics and pie charts are hard or impossible to digitize accurately. Dates on axes need converting from numbers. When a chart is ambiguous, note the uncertainty rather than presenting digitized values as exact.
Plot digitizing turns static images back into data you can analyse, combine and re-plot. A careful calibration and a quick check of known values are all it takes to make the results trustworthy.


&c=%237c3aed&k=images)
