Apologies, this is a very similar question to one I asked yesterday, but a bit different. Apologies as well if the answer is in the docs, but I’m struggling to find it. I’ve been playing around with various combinations of properties/functions from the docs. I feel like this should be a simple problem that I’m somehow messing up.
Here is an example figure:
The left plot spans two rows. I’d like the axes in the second column to have the same width, which will involve the size of the rows changing. And I’d also like the height of the left axis to equal the height of the two right axes, which will involve the size of the columns changing.
I’ve been looking this this page: GridLayout · Makie
but really can’t get my head around what I need to be doing for my specific case…
Here is code that produces the figure:
using GLMakie
x,y,z = rand(100), rand(100), 3 .*rand(100)
function plot3d(f;kwargs...)
ax = Axis3(f[1,1], protrusions = (0,0,0,0),aspect=:data;kwargs...)
hidedecorations!(ax)
scatter!(ax,x,y,z)
end
f = Figure(size=(500,500))
plot3d(f[1:2,1])
plot3d(f[1,2];elevation=0,azimuth=-pi/2,title="Side View")
plot3d(f[2,2],elevation=pi/2,azimuth=-pi/2,title="Top View")
f