Makie: How to define subscenes and/or different plot windows

Thanks.
My intention is to place several line plots in one window and with your hints I managed. Example:

module TestMakie

using Makie

x=collect(0:0.01:10); y=sin.(x)

scene     = Scene(resolution=(1000,400))
subscene1 = Scene(scene, IRect(0,0,500,400))
subscene2 = Scene(scene, IRect(500,0,500,400))

lines!(subscene1, x, y)
lines!(subscene2, x, 2*y)

display(scene)

end

resulting in

This definition with Makie looks nice and very powerful.

It might be helpful for other users to add such an example to the Makie tutorial.

4 Likes