Code
using GLMakie
with_theme(theme_light()) do
= Figure()
fig = Axis(fig[1,1:2])
ax_main = Axis(fig[1,3], xlabel = "y label", ylabel = "x label") # well, just flip these ones
ax_side = Ys = -10:0.1:10
Xs contour!(ax_main, Xs, Ys, exp.((-Xs'.^2 .- Ys.^2)/25))
= lines!(ax_side, Xs, exp.(-Xs.^2/25))
obj rotate!(obj, -π/2) # rotates your plotted object
= true
ax_side.yreversed
figend