tracer
tracer copied to clipboard
LinearAxis cannot handle very small decimal numbers
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.
add majorTickCount < 1000
in HistogramPlot line 198, to avoid dead loop at the moment, but need better idea to handle small decimals in axis.
@rambaut Not sure if log scale will solve the issue. Since the solution above stopped the error, I changed the issue label to enhancement.