Created
February 15, 2024 16:42
-
-
Save jkrumbiegel/c0b2df298de52bd8b2dee24d4af7238b to your computer and use it in GitHub Desktop.
how to get axes from a `Figure` in Makie
This file contains hidden or 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() | |
for i in 1:3, j in 1:3 | |
Axis(f[i, j], title = "$i, $j") | |
end | |
# pretend you get f here and want to change Axes you can't directly get as variables | |
ax = f.content[3] | |
ax.subtitle = "f.content[3]" | |
ax2 = content(f.layout[2, 1]) | |
ax2.subtitle = "content(f.layout[2, 1])" | |
f |
Author
jkrumbiegel
commented
Feb 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment