I am trying to show xy-, xz-, yz-views of a 3D object using Makie. Here is the code to set up three panels for the views:
using CairoMakie
fig = Figure(resolution=(1500,1500))
fig[1,1] = Axis3(fig, aspect=:data, viewmode=:fit, elevation=π/2, azimuth=-π/2)
fig[2,1] = Axis3(fig, aspect=:data, viewmode=:fit, elevation=0.0, azimuth=-π/2)
fig[2,2] = Axis3(fig, aspect=:data, viewmode=:fit, elevation=0.0, azimuth=0.0)
Box(fig[1,1], color=:transparent, strokecolor=:red)
Box(fig[2,1], color=:transparent, strokecolor=:red)
Box(fig[2,2], color=:transparent, strokecolor=:red)
resize_to_layout!(fig)
display(fig)
And here is the result:
I would like to reduce the gap between the
Axis3
areas. I have two issues: the gaps between the black x-, y-, z-axes and the enclosing red rectangles are too wide, and the gaps between red rectangles are two wide. How can I reduce these gaps? I tried to change all the keyword arguments of Axis3
whose names include pad, gap, margin, but none of them works.