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

`linesfill` weird behavior in the presence of NaNs

Open ericphanson opened this issue 1 year ago • 0 comments

using Makie, CairoMakie, AlgebraOfGraphics
xs = range(0, 1; length=101)
ys = collect(range(0, 1; length=101))
ys[1] = NaN
upper = ys .+ 0.1
lower = ys .- 0.1
linesfill(xs, ys; upper, lower, axis=(; limits=(-1,2.0,-1,2.0)))

fig

Here I expect the bands to not jump to the top-left corner.

(jl_aavwD3) pkg> st
Status `/private/var/folders/gj/l9rbktlj6qndlnz1nk164d280000gn/T/jl_aavwD3/Project.toml`
  [cbdf2221] AlgebraOfGraphics v0.6.18
  [13f3f980] CairoMakie v0.11.11
  [ee78f7c6] Makie v0.20.10

ericphanson avatar May 09 '24 14:05 ericphanson