I have several figures with many plots in each that I want to combine into a composite figure.
I can do this by re-plotting everything from scratch into a new figure but this is a bit inconvenient for large figures and will take time rewriting code.
Is there an easy way to combine several Makie figures into a new Makie figure?
A simple example could be the following code where I would want to draw
combined_figure by extracting objects from
fig2 somehow without re-plotting using
using CairoMakie x = LinRange(0, 10, 100) y = sin.(x) fig1 = Figure() lines(fig1[1, 1], x, y, color = :red) fig2 = Figure() lines(fig2[1, 1], x, y, color = :blue) combined_figure = Figure() lines(combined_figure[1, 1], x, y, color = :red) lines(combined_figure[1, 2], x, y, color = :blue) fig1 fig2 combined_figure