WebPlotDigitizer icon indicating copy to clipboard operation
WebPlotDigitizer copied to clipboard

Feature Request: Give error when a scale is log and any calibration point is not positive

Open billdenney opened this issue 4 years ago • 2 comments

While working on #192, I found an issue extracting from a rotated bar graph.

All "value" items are null in the extraction. Note the values in the dataset name "Bar rotated 1". wpd_all_types.txt

This is arbitrarily created on top of the image that is initially loaded with the first load of WPD (though the actual points were random clicks).

billdenney avatar Jan 26 '20 17:01 billdenney

Works fine for me. I attached my project files from both vertical and horizontal cases

projects.zip

ankitrohatgi avatar Jan 27 '20 03:01 ankitrohatgi

This is my fault...

I started to go into detail of what exactly I did to cause the issue, but then I noticed that I did something less intelligent.

The issue was that I checked log scale and had a calibration point at 0. That is definitely a user error. As you can possibly tell, I was going through all options on all axis types to document the format. So, I wasn't really paying attention to what the options were that I was using.

Perhaps WPD should only allow positive values for log-scale calibration and give an error when an attempt is made to calibrate with zero or a negative value and log scale.

billdenney avatar Jan 27 '20 13:01 billdenney