[x] are you running newest version (version from docs) ?
[x] can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
[x] What platform + GPU are you on? Linux & AMD Ryzen APU
Consider this recipe just wrapping a lines plot
using GLMakie
@recipe(PltLine, x, y, z) do scene
Attributes()
end
function Makie.plot!(plot::PltLine)
lines!(plot, plot.x, plot.y)
end
pltline(1:3, 1:3, [])
whereas pltline(1:3, 1:3, nothing) works as well as pltline(1:3,1:3, Int[]). This confused me quite a bit. Note that the error which lines(1:3, []) produces is better, namely MethodError: reducing over an empty collection is not allowed.
]activate --temp; add Makie
)Consider this recipe just wrapping a lines plot
produces
whereas
pltline(1:3, 1:3, nothing)
works as well aspltline(1:3,1:3, Int[])
. This confused me quite a bit. Note that the error whichlines(1:3, [])
produces is better, namelyMethodError: reducing over an empty collection is not allowed
.