From dc51c7ef6aa1426e40b4dfd62b5f6d7bc0f47274 Mon Sep 17 00:00:00 2001 From: Mattriks Date: Tue, 25 Aug 2020 09:39:11 +1000 Subject: [PATCH] geom_ribbon: replace nan separator by missing --- src/geom/ribbon.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geom/ribbon.jl b/src/geom/ribbon.jl index b0b07fd26..d9c6e6caf 100644 --- a/src/geom/ribbon.jl +++ b/src/geom/ribbon.jl @@ -56,7 +56,7 @@ function render(geom::RibbonGeometry, theme::Gadfly.Theme, aes::Gadfly.Aesthetic kys = keys(max_points) polys = [collect(Tuple{XT, YT}, Iterators.flatten((min_points[k], max_points[k]))) for k in kys] - lines = [collect(Tuple{XT, YT}, Iterators.flatten((min_points[k], [(last(min_points[k])[1], oneunit(YT)*NaN)], max_points[k]))) for k in kys] + lines = [collect(Tuple{XT, Union{YT, Missing}}, Iterators.flatten((min_points[k], [(last(min_points[k])[1], missing)], max_points[k]))) for k in kys] n = length(kys) colors = Vector{Union{Colorant, String}}(undef, n)