Right now I am on version GLMakie@v0.8.4 and there it says that labelslidergrid! is deprecated, one should use SliderGrid instead. So maybe try replacing that part with
lsgrid = SliderGrid(fig[2,1],
(label = "scale", range = LinRange(-10:0.01:10), format = x -> "$(round(x, digits = 2))"),
(label = "x-reference", range = LinRange(-10:0.01:10), format = x -> "$(round(x, digits = 2))"),
(label = "y-reference", range = LinRange(-10:0.01:10), format = x -> "$(round(x, digits = 2))")
)
Fontsize should now be added to Figure, but for some reason it does not scale the label’s sizes for me at the moment (although I have another script where it still works …).
Also: These two blocks need to be swapped in the script, because scale needs to be defined first before one can listen to it:
# create listeners
scale = lsgrid.sliders[1].value #edited from original
xreference = lsgrid.sliders[2].value #edited from original
yreference = lsgrid.sliders[3].value #added
# draw a function
x = -10:0.01:10
m = @lift($scale .* x.^2) #quadratic function #edited from original
line1 = lines!(ax1, x, m, color = :blue, linewidth = 5) #edited from original