automeris-io / WebPlotDigitizer

Computer vision assisted tool to extract numerical data from plot images.
https://automeris.io
GNU Affero General Public License v3.0
2.66k stars 364 forks source link

XY axis calibration, when axis are compressing #282

Open BCDueholm opened 2 years ago

BCDueholm commented 2 years ago

Hello,

I have an issues with XY plots like the one below. As can be seen the axis are compressing. So for example Delta_x=10 are a different amount of pixels in each end of the x-axis. Same is true for the logarithmic y-axis. HVXA15_viscosity

Is there any way to take this axis compression into account?

Best regards

nbehrnd commented 2 years ago

It looks like the scale's intervals (how many pixels for a Delta of 10 deg Celsius) changes three times yet remains linear along the abscissa within the intervals [-40...40], [40...100], and [100...140].

Thus, instead a one single definition of the abscissa extending all along the horizontal dimension of the plot, process the illustration three times for each of these intervals individually. I.e. define the points about the minimum/maximum at the limits of these intervals as «linear» 2D plot axis. (And for the ordinate, don't forget to enable the logarithmic scaling during the axes' calibration.)

BCDueholm commented 2 years ago

Hi,

Thanks for the answer.

I'm not quite sure what the «linear» 2D option is. What I did is the following. Add calibration for 2D(X-Y) plot, with the following points: image Input the values of points: image If I then put my cursor in [0,200], it gives approximately [3,225]. Am I missing something here?

To me it looks like scale's intervals are linearly decreasing in the direction of growing X/Y. For example the first and last box in [-40,40] interval are not the same size. Can this be taken into account, except doing the alignment in a lot of very small intervals?

nbehrnd commented 2 years ago

After measuring the dimensions of some of the rectangles (inkscape, activation by key m) of the illustration imported, the plot looks distorted. It neither is a clear semilog plot, nor an obvious double logarithm plot. Tentative simultaneous import of the .png and of a semi-log paper (e.g., papersnake.com) to adjust the shearing against the .png against this reference did not improve the situation for a better reading by the digitizer.

Thus I think the options available to the user of the diagram are limited to

The example indeed looks like to feature a lock-in. I can't identify which of the sites on stackexchange were more suitable to address viscosity (e.g., physics, génie civil/engineering).