Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created May 4, 2022 10:45
Show Gist options
  • Save jkrumbiegel/8e87b7c6be6699d3babfda3b8778773d to your computer and use it in GitHub Desktop.
Save jkrumbiegel/8e87b7c6be6699d3babfda3b8778773d to your computer and use it in GitHub Desktop.
GridLayout Boxes with padding
f = Figure()
b = Box(f[1, 1], color = :tomato)
translate!(b.elements[:rect], 0, 0, -100)
gl = f[1, 1] = GridLayout(alignmode = Outside(30))
for i in 1:2, j in 1:2
ax = Axis(gl[i, j])
end
b = Box(f[1, 2], color = :teal)
translate!(b.elements[:rect], 0, 0, -100)
gl = f[1, 2] = GridLayout(alignmode = Outside(30))
for i in 1:3, j in 1:2
ax = Axis(gl[i, j])
end
f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment