PlotUtils.jl
PlotUtils.jl copied to clipboard
No strict ticks found for exponentially small limits
While testing for https://github.com/MakieOrg/Makie.jl/pull/3681 I noticed that tick finding has problems with small numbers, starting around PlotUtils.optimize_ticks(1e-17, 10e-17)
. It would be nice if we could push this a bit further.
For large values even PlotUtils.optimize_ticks(1e200, 10e200)
still works.
This is a particular issue in GeoMakie when zooming in to small areas on geographic plots!
I think an easy workaround would be to scale the inputs and then scale back after. Or pass a bigger number type. Though I'm not sure that function is written generic enough for that.
I don't see how we could alter the function to work with values below machine epsilon for Float64 input TBH.