1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2025-09-02 09:02:35 +00:00

Better title for only one episode in mean_kappa

This commit is contained in:
Mo8it 2022-02-01 03:09:27 +01:00
parent 7e52270d86
commit 1409206eab
3 changed files with 10 additions and 4 deletions

View file

@ -65,12 +65,18 @@ function plot_mean_kappa(; rl_dir::String, n_last_episodes::Int64)
init_cairomakie!()
fig = gen_figure(; padding=9)
if n_last_episodes > 1
title = "Averaged over last $n_last_episodes episodes"
else
title = "Result of only one episode"
end
ax = Axis(
fig[1, 1];
xlabel="Frame",
ylabel=L"\kappa",
limits=(1, total_n_snapshots, 0.0, 1.04),
title="Averaged over last $n_last_episodes episodes",
title=title,
)
lines!(ax, 1:total_n_snapshots, snapshot_κs; label=L"\kappa")