Skip to content

Commit 75043b4

Browse files
committed
fix plotting
1 parent 52a5d8e commit 75043b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/gaussian-process-priors/script.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ function visualize(k::Kernel)
8080
p_kernel_cut = plot(
8181
X,
8282
k.(X, 0.0);
83-
title=string(raw"$k(x, x_\text{ref})$"),
84-
label=raw"$x_\text{ref}=0.0$",
83+
title=string(raw"$k(x, x_\mathrm{ref})$"),
84+
label=raw"$x_\mathrm{ref}=0.0$",
8585
xlim=xlim,
8686
xticks=(xlim, xlim),
87+
legendfontsize=8,
8788
)
88-
plot!(X, k.(X, 1.0); label=raw"$x_\text{ref}=1.0$")
89+
plot!(X, k.(X, 1.0); label=raw"$x_\mathrm{ref}=1.0$")
8990

9091
p_samples = plot(X, f; c="blue", title=raw"$f(x)$", ylim=(-3, 3), label=nothing)
9192

0 commit comments

Comments
 (0)