Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created January 26, 2024 08:21
Show Gist options
  • Save jkrumbiegel/7e5dff4ddf6c2ee896fbeb5d560e02ef to your computer and use it in GitHub Desktop.
Save jkrumbiegel/7e5dff4ddf6c2ee896fbeb5d560e02ef to your computer and use it in GitHub Desktop.
multiple inset axes in gridlayout
f = Figure()
main_ax = Axis(f[1, 1])
inset_gl = GridLayout(f[1, 1], alignmode = Outside(15))
inset_ax_1 = Axis(inset_gl[1:2, 1])
Label(inset_gl[1:2, 1, Right()], "(a)", valign = :top, padding = (5, 0, 0, 0))
inset_ax_2 = Axis(inset_gl[1, 2])
Label(inset_gl[1, 2, Left()], "(b)", valign = :top, padding = (0, 5, 0, 0))
inset_ax_3 = Axis(inset_gl[2, 2])
Label(inset_gl[2, 2, Left()], "(c)", valign = :top, padding = (0, 5, 0, 0))
for ax in [inset_ax_1, inset_ax_2, inset_ax_3]
hidedecorations!(ax)
translate!(ax.blockscene, 0, 0, 100)
end
Colorbar(f[1, 2])
f
@jkrumbiegel
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment