Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created May 2, 2021 15:07
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/8e768930097d129b3ecd5c78ed3aab06 to your computer and use it in GitHub Desktop.
Save jkrumbiegel/8e768930097d129b3ecd5c78ed3aab06 to your computer and use it in GitHub Desktop.
makielayout set figure size according to fixed width/height subplots
f = Figure()
[Axis(f[i, j], width = 300, height = 250) for i in 1:3, j in 1:3]
sz = ceil.(Int, GridLayoutBase.determinedirsize.(
Ref(f.layout),
(GridLayoutBase.Col(), GridLayoutBase.Row())))
resize!(f.scene, sz)
f
@jkrumbiegel
Copy link
Author

grafik

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