Merge pull request #3015 from alusiani/fixhspan
fix horizontal range of hspan()
This commit is contained in:
commit
f03e8bbc83
@ -133,7 +133,7 @@ end
|
|||||||
|
|
||||||
@recipe function f(::Type{Val{:hspan}}, x, y, z)
|
@recipe function f(::Type{Val{:hspan}}, x, y, z)
|
||||||
n = div(length(y), 2)
|
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]...)
|
newy = vcat([[y[2i - 1], y[2i - 1], y[2i], y[2i], NaN] for i = 1:n]...)
|
||||||
linewidth --> 0
|
linewidth --> 0
|
||||||
x := newx
|
x := newx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user