Makie.jl
Makie.jl copied to clipboard
Issue with noisy y-values around constant with autolimits!
The following code results in the error "ERROR: ArgumentError: range step cannot be zero". I suggest that in machine epsilon cases like this, one should use the same behavior as if the values were all the same (in this case 4).
using Makie
fig = Figure();
layout = fig[1, 1] = GridLayout()
ax = Axis(layout[1, 1])
x = 1:24
y = ones(size(x))*4
l = lines!(x, y)
y[2] += 1e-15
l[1][] = [Point{2,Float64}(x, y) for (x, y) ∈ zip(x, y)]
autolimits!(ax)
- Versions: Makie v0.21.9
- The bug can be reproduced in a clean environment:
]activate --temp; add Makie
) - I'm running Microsoft Windows 11 Enterprise with Intel(R) Iris(R) Xe Graphics