How to get value of ticks?

Hi everyone,

I am trying to get the value of the ticks in a plot, but they appear to change before showing the plot. The function prints Float32[0, 5, 10] while the actual ticks are [0; 0.5; 1.0].

using GLMakie

fig, ax, lin = lines(0..2, sin)
@show ax.xaxis.tickvalues[]

Yeah ticks are nowadays computed first right before showing the figure, and not after adding each plot, because that can take a while if you add many plots. You can call reset_limits!(ax) to do it manually

Thank you for the prompt and effective reply! That fixed it.