Dot locations from images of graphs

Choose a test image, open a file, or paste or drop an image.

–

Dot Scraper

Finds the dots in an image of a scatterplot or dot plot and reports where they are, in pixels and, once the axes have values, in data units. It is made for the hard case: dots that overlap, drawn with transparency, where counting blobs or circles fails.

It works by analysis by synthesis. It measures the dots' style (color, size, transparency, edge blur, outline), sets aside what isn't dots (text, lines, axes), then searches for the set of dot positions whose rendering reproduces the image. A dot hidden in a stack shows up as a darker level, not as an edge.

Using it

  1. Open an image: Open…, or paste (⌘V / Ctrl+V), or drop one on the view. A PNG straight from the source works best; screenshots and JPEGs work with Noisy color matching.
  2. Check the dot families it found, one per dot color. Add a missing one with Add family by color and a click on a dot; type a radius if it asks for one.
  3. Find dots. The fit runs in the background; Stop keeps what it has.
  4. Review. Hover a dot for its position and uncertainty. Flagged dots are red: hover for why. A magenta double ring marks dots of one family almost in one place, which for opaque dots may be one dot counted twice; the Pairs box hides these marks. The Residual view shows what the dots don't explain.
  5. Fix with Add, Remove and Move. Edits refit the dots nearby, but never dots you placed or moved. Option-click (Alt-click) adds or removes without any refit. Flag marks a flagged dot you have checked as reviewed: it is drawn and counted as unflagged, its flags kept in the table.
  6. Axes: tick values are read from the labels when at least three of an axis's fit one scale, or two on a log axis whose minor ticks confirm them; check them, and type over any that is wrong. Labels like 103, 2 × 103 and 1e+05 are read, and a y axis's labels turned to run along it, as R draws them; text at other angles is not. Otherwise type two or more to get data units.
  7. Export: Copy table (pastes into a spreadsheet) or Save CSV.

Keys and mouse

A R M F
Add, Remove, Move, Flag review mode; Esc ends it
Arrows
move the chosen or last added dot 1 px; with Shift, 0.1 px
D
show or hide the dots' marks; in Add, Remove and Move, holding Shift hides them
⌘Z / Ctrl+Z
undo an edit
Wheel, drag
zoom at the pointer, pan

Privacy

Everything runs in your browser. Images are never uploaded; they never leave your computer. Visits are counted with Plausible, which uses no cookies and collects no personal data.

Source, documentation and issues: github.com/xangregg/dotscraper. Open source under the BSD Zero Clause License. The code was largely written with Claude Code.