From 82d2bd5ab41cbddd2d1eff7830333b01314704f2 Mon Sep 17 00:00:00 2001 From: Luke Morris <70283489+lukem12345@users.noreply.github.com> Date: Wed, 4 Dec 2024 08:29:45 -0700 Subject: [PATCH] Polar camera angle and red-blue colormap in H-E-W plots --- docs/src/ebm_melt/ebm_melt.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/src/ebm_melt/ebm_melt.md b/docs/src/ebm_melt/ebm_melt.md index fda81c46..ec19a956 100644 --- a/docs/src/ebm_melt/ebm_melt.md +++ b/docs/src/ebm_melt/ebm_melt.md @@ -72,7 +72,8 @@ end f = Figure() ax = LScene(f[1,1], scenekw=(lights=[],)) -msh = mesh!(ax, s_plots, color=sit_sph) +update_cam!(ax.scene, Vec3f(0,0,0.8), Vec3f(0,0,0), Vec3f(0, 1, 1)) +msh = mesh!(ax, s_plots, color=sit_sph, colormap=Reverse(:redsblues)) Colorbar(f[1,2], msh) f ``` @@ -315,7 +316,8 @@ Let's visualize the initial conditions for ice height and the ice height after 1 ``` @example DEC f = Figure() ax = LScene(f[1,1], scenekw=(lights=[],)) -msh = mesh!(ax, s_plots, color=soln.u[begin].h) +update_cam!(ax.scene, Vec3f(0,0,0.8), Vec3f(0,0,0), Vec3f(0, 1, 1)) +msh = mesh!(ax, s_plots, color=soln.u[begin].h, colormap=Reverse(:redsblues)) Colorbar(f[1,2], msh) f ``` @@ -325,7 +327,8 @@ f ``` @example DEC f = Figure() ax = LScene(f[1,1], scenekw=(lights=[],)) -msh = mesh!(ax, s_plots, color=soln.u[end].h) +update_cam!(ax.scene, Vec3f(0,0,0.8), Vec3f(0,0,0), Vec3f(0, 1, 1)) +msh = mesh!(ax, s_plots, color=soln.u[end].h, colorrange=extrema(soln.u[begin].h), colormap=Reverse(:redsblues)) Colorbar(f[1,2], msh) f ```