Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created February 15, 2024 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkrumbiegel/c0b2df298de52bd8b2dee24d4af7238b to your computer and use it in GitHub Desktop.
Save jkrumbiegel/c0b2df298de52bd8b2dee24d4af7238b to your computer and use it in GitHub Desktop.
how to get axes from a `Figure` in Makie
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
@jkrumbiegel
Copy link
Author

grafik

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