Makie.jl icon indicating copy to clipboard operation
Makie.jl copied to clipboard

Issue with noisy y-values around constant with autolimits!

Open Zetison opened this issue 5 months ago • 1 comments

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

Zetison avatar Aug 27 '24 16:08 Zetison