Skip to content

Commit b8c0b2a

Browse files
Close properly close interval boxes (#609)
1 parent 5909148 commit b8c0b2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/IntervalArithmeticRecipesBaseExt.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ using IntervalArithmetic, RecipesBase
1010

1111
x, y = v
1212

13-
x = [inf(x), sup(x), sup(x), inf(x)]
14-
y = [inf(y), inf(y), sup(y), sup(y)]
13+
x = [inf(x), sup(x), sup(x), inf(x), inf(x)]
14+
y = [inf(y), inf(y), sup(y), sup(y), inf(y)]
1515

1616
return x, y
1717
end
@@ -29,8 +29,8 @@ end
2929
for vᵢ v
3030
x, y = vᵢ
3131
# use NaNs to separate
32-
append!(xs, [inf(x), sup(x), sup(x), inf(x), NaN])
33-
append!(ys, [inf(y), inf(y), sup(y), sup(y), NaN])
32+
append!(xs, [inf(x), sup(x), sup(x), inf(x), inf(x), NaN])
33+
append!(ys, [inf(y), inf(y), sup(y), sup(y), inf(y), NaN])
3434
end
3535

3636
return xs, ys

0 commit comments

Comments
 (0)