tracer icon indicating copy to clipboard operation
tracer copied to clipboard

LinearAxis cannot handle very small decimal numbers

Open walterxie opened this issue 7 years ago • 2 comments

If value range is very small decimal numbers but the relative difference is huge, such as [1E-308, 1E-79], the int binCount = (int) ((axis.getMaxAxis() - axis.getMinAxis()) / binSize) + 2; will return negative value, and then while (binCount < minimumBinCount) will begin a dead loop.

walterxie avatar Apr 07 '17 04:04 walterxie

add majorTickCount < 1000 in HistogramPlot line 198, to avoid dead loop at the moment, but need better idea to handle small decimals in axis.

walterxie avatar Apr 07 '17 04:04 walterxie

@rambaut Not sure if log scale will solve the issue. Since the solution above stopped the error, I changed the issue label to enhancement.

walterxie avatar Jan 31 '18 01:01 walterxie