Created
May 2, 2021 15:07
-
-
Save jkrumbiegel/8e768930097d129b3ecd5c78ed3aab06 to your computer and use it in GitHub Desktop.
makielayout set figure size according to fixed width/height subplots
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() | |
[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 |
Author
jkrumbiegel
commented
May 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment