Is it currently possible to define a recipe with multiple axes in Makie.jl? Say I have a full recipe called MyPlot
that acts on a type T
, I want the call myplot(obj::T)
to return a figure with 2x2 grid layout filled with different plots. How to do this?
The SpecApi | Makie is probably what you need. Although it is experimental for now.
Just write a function
That’s definitely the easiest and most reliable approach. You don’t get the composability of recipes, but sounds you don’t need a lot of it anyway because you want to return the whole figure.
Can we return a Makie.SpecApi
in a full recipe? I’ve read that API in the past, but understood it is intended for end-users, not recipe writers.
That is one way out. It is unfortunate that we can’t create recipes with multiple axes yet.