From 801ba0643d1ed99d1f707432c942bcef69321672 Mon Sep 17 00:00:00 2001 From: "Gregory L. Wagner" Date: Sat, 16 Nov 2024 19:05:57 -0700 Subject: [PATCH] More straightforward text label for ECCO visualization (#250) * More straightforward label for ECCO data It's confusing to think about things in terms of depth when our entire interface is in terms of height. * Update inspect_ecco_data.jl --------- Co-authored-by: Navid C. Constantinou --- examples/inspect_ecco_data.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/inspect_ecco_data.jl b/examples/inspect_ecco_data.jl index b3f5a491..3d260436 100644 --- a/examples/inspect_ecco_data.jl +++ b/examples/inspect_ecco_data.jl @@ -61,7 +61,7 @@ Colorbar(fig[1, 2], hmT, label="Temperature (ᵒC)") Colorbar(fig[2, 2], hmS, label="Salinity (psu)") z = znodes(grid, Center()) -depth_str = @lift @sprintf("%.1f meters depth", -z[$k]) +depth_str = @lift @sprintf("z = %d meters", z[$k]) text!(axT, 50, 50, text=depth_str, color=:lemonchiffon, justification=:center, fontsize=20) text!(axS, 50, 50, text=depth_str, color=:lemonchiffon, justification=:center, fontsize=20)