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.58k stars 354 forks source link

XY-Axes-Calibration with Dates #205

Open thjuz opened 4 years ago

thjuz commented 4 years ago

Hi,

i sometimes use this great tool to digitize strip charts. Some weeks ago everything worked fine, but now i have problems with the calibration of XY-axes. At the y-axis i have values between 0 and 10. At the x-axis i have dates. As discribed i use the format yyyy/mm/dd hh:ii:ss. X1: 1952/02/29 09:00:00 X2: 1952/03/01 09:00:00

wpd_bug_20200331_01

After I confirm this, I can start e.g. to set points. Under the magnifier in the top right corner of the window I can find the current coordinates of my mouse pointer.

wpd_bug_20200331_02 wpd_bug_20200331_03 On the left border of my picture the date is 1952/03/01 and on the right border 1952/02/29. It seems like the axis is mirrored and represents an entire month!

I also have problems with months of LESS THEN 31 days. At this point I get an offset of +1 month. On the other hand, everything is fine for months WITH 31 days.

Thanks a lot for this tool and best regards, Thomas

SvenMeyer commented 4 years ago

I use Webplot Digitizer for financial charts (it's already a great help !) , but had to convert date/time to a fractional format and convert it back with some hand crafted formulars in Excel. I would be great if date/time would be supported natively ! I would even have an additional feature request: The financial charts normally skip the weekends (see sample chart) - after 27 March comes 30 March

WikiImage ashx

ankitrohatgi commented 4 years ago

@thjuz would it be possible for you to share the .tar project file for your issue? I'm guessing you're hitting some odd corner case.

ankitrohatgi commented 4 years ago

@thjuz - additionally, what browser do you use? I tried reproducing the issue with the screenshot here, but my x-axis is not flipped like yours.

ankitrohatgi commented 4 years ago

@SvenMeyer you have a completely different issue. Currently do not support financial charts (never considered until now). Thanks for bringing it up! If my bandwidth allows, I'll try to add support.