Created
February 15, 2024 16:42
how to get axes from a `Figure` in Makie
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() | |
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