From 237081bc01f74849500f8847327798aa62a6e829 Mon Sep 17 00:00:00 2001 From: fernandopalafox Date: Mon, 5 Feb 2024 14:29:31 -0600 Subject: [PATCH] changed axis limits for better perspective --- experiments/tower_defense.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/experiments/tower_defense.jl b/experiments/tower_defense.jl index 39c79d1..d5b1052 100644 --- a/experiments/tower_defense.jl +++ b/experiments/tower_defense.jl @@ -257,13 +257,14 @@ function display_surface(ps, Ks) ylabel = "r₂", zlabel = "K", title = "Stage 1 cost as a function of r \n priors = $(round.(ps, digits=2))", + limits = (nothing, nothing, (0.01, 1)), ) Ks_min = minimum(filter(!isnan, Ks)) - hmap = surface!(ax, rs, rs, Ks) + hmap = surface!(ax, rs, rs, Ks, colorrange = (0, 1)) Colorbar(fig[1, 2], hmap; label = "K", width = 15, ticksize = 15, tickalign = 1) - text!(ax, "$(round(ps[1], digits=2))", position = (0.9, 0.4, Ks_min), font = "Bold") - text!(ax, "$(round(ps[2], digits=2))", position = (0.1, 0.95, Ks_min), font = "Bold") - text!(ax, "$(round(ps[3], digits=2))", position = (0.2, 0.1, Ks_min), font = "Bold") + text!(ax, "$(round(ps[1], digits=2))", position = (0.9, 0.4, 0.01), font = "Bold") + text!(ax, "$(round(ps[2], digits=2))", position = (0.1, 0.95, 0.01), font = "Bold") + text!(ax, "$(round(ps[3], digits=2))", position = (0.2, 0.1, 0.01), font = "Bold") fig end