Created
January 26, 2024 08:21
-
-
Save jkrumbiegel/7e5dff4ddf6c2ee896fbeb5d560e02ef to your computer and use it in GitHub Desktop.
multiple inset axes in gridlayout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
jkrumbiegel
commented
Jan 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment