Shade area under the curve between two points in Plots.jl

ix = abs.(x) .< 1
plot(x[ix], y[ix], fillrange = zero(x[ix]), fc=:blues)
plot!(x, y, grid=false, lc=:black, widen=false)

1 Like