The following code:
using CairoMakie
xs = [1,2,3,4]
ys = [1,1,1e15,1]
fig = Figure()
ax1 = Axis(fig[1,1], limits=(nothing, nothing))
ax2 = Axis(fig[1,2], limits=(nothing, (0,2)))
lines!(ax1, xs, ys)
lines!(ax2, xs, ys)
fig
produces this graph:
Why is the line segment from (1,1) to (2,1) not displayed in the right-hand graph (which had the y limits set)? If I change 1e15 to NaN, the line is displayed, but I don’t want to do something hacky like setting all numbers above a certain threshold to NaN.

