Confidence region

using CairoMakie

x = y = -10:0.11:10
y1d = sin.(x) ./ x
lower = y1d .- 0.1
upper = y1d .+ 0.1

fig = Figure(resolution = (600, 400))
ax = Axis(fig[1, 1], xlabel = "x", ylabel = "y")
lines!(x, y1d, color = :black)
band!(x, lower, upper; color = (:green, 0.2))
fig

Warning

This example was autogenerated using:

using Pkg
Pkg.status(["CairoMakie"])
Status `~/work/BeautifulMakie/BeautifulMakie/docs/Project.toml`
  [13f3f980] CairoMakie v0.10.6

This page was generated using Literate.jl.