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:
parent
7e52270d86
commit
1409206eab
3 changed files with 10 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue