From ba7ef483c48a3991b8b6db3ca187ba8e91358cf2 Mon Sep 17 00:00:00 2001 From: Nikola <2212719@stud.hs-mannheim.de> Date: Mon, 16 Jun 2025 20:44:47 +0200 Subject: [PATCH] make slider not limit whole screen size and remove print --- src/visualization.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/visualization.jl b/src/visualization.jl index b4ded0a..7efa50e 100644 --- a/src/visualization.jl +++ b/src/visualization.jl @@ -89,7 +89,7 @@ function build_ui(U, V, param_obs_map::NamedTuple, params_obs, heat_obs) btn_step = Button(buttongrid[1, 1], width=50, label="Step") btn_start = Button(buttongrid[1, 2], width=50, label=run_label) btn_reset = Button(buttongrid[1, 3], width=50, label="Reset") - slidergrid = SliderGrid(fig[3, 1], (label="Speed", range=1:1:100, format="{}x", width=350, startvalue=stepsize[])) + slidergrid = SliderGrid(fig[3, 1], (label="Speed", range=1:1:100, format="{}x", width=350, startvalue=stepsize[]), tellwidth=false) speed_slider = slidergrid.sliders[1].value @@ -156,7 +156,6 @@ function build_ui(U, V, param_obs_map::NamedTuple, params_obs, heat_obs) return end x, y = pt - println("params_obs[].N, ", params_obs[].N) i, j = coord_to_index(x, y, params_obs[].N) # get corners of square that will get filled with concentration