How customizable is Makie?

Either by using the bbox argument

f = Figure(resolution = (450, 450))
ax = Axis(f, bbox = Rect2i((25, 25), (400, 400)))
image!(ax, rand(400, 400))
f

Of course the decorations clip with this setting, I guess you’d hide them. So in that case you could also go bare-bones and directly plot the image to a Scene with pixel-camera. The Figure happens to have one so we can also do:

f = Figure(resolution = (450, 450))
image!(f.scene, 25..425, 25..425, rand(400, 400))
f

Or you use the padding option of the Figure layout, set that to 25, then let the Axis fill the available space without decorations. That has the same result:

f = Figure(resolution = (450, 450), figure_padding = 25)
ax = Axis(f[1, 1])
hidedecorations!(ax)
hidespines!(ax)
image!(ax, rand(400, 400))
f

2 Likes