How to retrieve axis handle from figure object?

using GLMakie

fig = Figure()
ax = Axis(fig[1,1])
t=0:.01:1
plot!(ax, t, sin.(2π.*t))
ax=Axis(fig[2,1])
plot!(ax, t, cos.(2π.*t))

# the axes can be accessed through the content member of the figure
ylims!(fig.content[1], -3, 3)

3 Likes