Tools › Numerical Methods › Data Tools › Plot Digitizer › Example

A chart scanned 4 degrees crooked: why the calibration follows the axes

ToolPlot Digitizer
SourceOriginal case: an illustrative stopping-distance curve d = 0.0057 v² + 0.28 v (m, km/h) drawn turned by 4 degrees by the tool's own script and read back; values from test_plot_digitizer.php.
LevelUndergraduate

Problem

A chart with linear axes, speed 0 to 120 km/h and distance 0 to 120 m, was scanned crooked. In the picture the x axis runs from pixel (95, 388) to (616, 352) and the y axis from (95, 388) to (72, 61). A marker is picked at (298, 301). Read its values with the tilt taken into account, and compare with reading the pixel column and row alone.

Inputs to Enter

  • X1 at pixel (95, 388), value 0; X2 at (616, 352), value 120; Y1 at (95, 388), value 0; Y2 at (72, 61), value 120; both axes linear
  • Picked point: u = 298, v = 301
Open the Plot Digitizer tool

Answers

  • d_X = (521, −36), d_Y = (−23, −327) pixels: the x axis lies 3.95° from the horizontal and the y axis 4.02° from the vertical
  • C_xy = 521 × (−327) − (−36) × (−23) = −171,195
  • r_x = (203 × (−327) − (−87) × (−23)) / (−171,195) = 0.39944; r_y = (521 × (−87) − (−36) × 203) / (−171,195) = 0.22208
  • Speed = 0.39944 × 120 = 47.93 km/h, distance = 0.22208 × 120 = 26.65 m (drawn at 48 km/h, 26.57 m)
  • Read as a level chart (Advanced, Square to the image): 203 / 521 × 120 = 46.76 km/h and 87 / 327 × 120 = 31.93 m, wrong by 1.2 km/h and 5.4 m

Notes

Open this case in the tool: /analysis-tools/numerical-methods/data-tools/plot-digitizer/?try=tilted-scan. A tilt of 4 degrees moves a point 200 pixels along the x axis by 200 × sin 4° = 14 pixels in height, far more than a click error; following the two axis directions removes it. The method is exact for a turn, a stretch or a shear of the picture, not for a photograph taken at an angle.

More Examples for This Tool