Greetings everyone,
Suppose we have the following figure in GLMakie:
using GLMakie
f = Figure()
Axis(f[1, 1])
Axis(f[2, 1])
Axis(f[2, 2])
colsize!(f.layout, 1, Fixed(300))
rowsize!(f.layout, 2, Fixed(300))
rowsize!(f.layout,1,Aspect(1,0.2))
colsize!(f.layout,2,Aspect(1,1))
f
Here, everything works perfectly fine.
However, if I try to do the same “col/rowsize treatment” on axes that are part of a grid layout, as follows, I get an error saying “row 2 is invalid”.
f = Figure()
m = f[1,1]
n = f[1,2]
Axis(m[1, 1])
Axis(m[2, 1])
Axis(m[2, 2])
Axis(n[1,1])
colsize!(m.layout, 1, Fixed(300))
rowsize!(m.layout, 2, Fixed(300))
rowsize!(m.layout,1,Aspect(1,0.2))
colsize!(m.layout,2,Aspect(1,1))
What would be the correct way to do this?
Also, I was wondering whether I could avoid using fixed col and row sizes and achieve the same behaviour with relative sizes (bottom left plot should be square). Any suggestions would be appreciated!