Skip to content

Commit 9540681

Browse files
committed
Minor refactor
1 parent c005136 commit 9540681

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

10-correlation.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ correlogram function given by $cor(h) = \exp(-h)$:
100100
#| echo: false
101101
xs = range(0, stop=10, length=100)
102102
ys = exp.(-xs)
103-
Mke.lines(xs, ys, axis = (xlabel="h", ylabel="cor(h)"), color="black")
103+
Mke.lines(xs, ys, axis = (xlabel = "h", ylabel = "cor(h)"), color = "black")
104104
```
105105

106106
- The correlogram $cor(h)$ is often a non-increasing function
@@ -153,7 +153,7 @@ $$
153153
#| echo: false
154154
xs = range(0, stop=10, length=100)
155155
ys = 1 .- exp.(-xs)
156-
Mke.lines(xs, ys, axis = (xlabel="h", ylabel="γ(h)"), color="black")
156+
Mke.lines(xs, ys, axis = (xlabel = "h", ylabel = "γ(h)"), color = "black")
157157
```
158158

159159
where $cov(h)$ is the covariance function, a version of the correlogram
@@ -193,10 +193,10 @@ ys = g.(xs)
193193
194194
fig = Mke.Figure()
195195
ax = Mke.Axis(fig[1,1], xlabel="h", ylabel="γ(h)", limits = (nothing, nothing, 0, 1.1))
196-
Mke.lines!(ax, xs, ys, color="slategray", label="model")
197-
Mke.vlines!(ax, r, color="black", linestyle=:dash, label="range")
198-
Mke.hlines!(ax, s, color="teal", linestyle=:dash, label="sill")
199-
Mke.hlines!(ax, n, color="teal", linestyle=:dot, label="nugget")
196+
Mke.lines!(ax, xs, ys, color = "slategray", label = "model")
197+
Mke.vlines!(ax, r, color = "black", linestyle = :dash, label = "range")
198+
Mke.hlines!(ax, s, color = "teal", linestyle = :dash, label = "sill")
199+
Mke.hlines!(ax, n, color = "teal", linestyle = :dot, label = "nugget")
200200
Mke.axislegend("Elements", position = :rc)
201201
fig
202202
```

0 commit comments

Comments
 (0)