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.63k stars 362 forks source link

Crosshair position switches to scientific notation #264

Closed dev3011 closed 3 years ago

dev3011 commented 3 years ago

I am using the downloaded version 4.4 on Win10.

When I set the axes the crosshair position is indicated in notation with comma. comma notation Sometimes it suddenly switches to scientific notation. scientific notation

This sometimes happens after saving the data as csv or json but sometimes even happens right after setting the axes. I found no way to revert back to 'normal' notation other than restarting the project.

ankitrohatgi commented 3 years ago

The coordinates are in 'normal' decimal notation when the values are in pixels (either not yet calibrated or using image axes).

After calibration, the numbers represent the data value at the mouse location and not pixels. Since the data coordinates can be any magnitude from extremely large values to extremely small values (depending on what's in the plot), it is easier to format those values using the exponential notation since then there's no special logic needed to switch formatting based on the magnitude (most old school calculators do the same).

ankitrohatgi commented 3 years ago

Also - there are cases when the active selections don't map to an axes calibration (e.g. while measuring angles) and in those cases these values switch back to showing pixels.

dev3011 commented 3 years ago

Thank you for the clarification. My issue with this was that when I loaded another picture and then have to set the axes it did not switch back to decimal notation. But I found the "Remove Grid" option now which solves this. Thanks for the awesome tool!