From 5a932146cf2c66742a3b3f31702b20ffb21b6015 Mon Sep 17 00:00:00 2001 From: Alberto Lusiani Date: Mon, 28 Sep 2020 23:37:38 +0200 Subject: [PATCH] fix horizontal range of hspan() --- src/recipes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index 2e7833da..aac758a5 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -133,7 +133,7 @@ end @recipe function f(::Type{Val{:hspan}}, x, y, z) n = div(length(y), 2) - newx = repeat([1, 2, 2, 1, NaN], outer = n) + newx = repeat([-Inf, Inf, Inf, -Inf, NaN], outer = n) newy = vcat([[y[2i - 1], y[2i - 1], y[2i], y[2i], NaN] for i = 1:n]...) linewidth --> 0 x := newx