I am trying to create a Makie recipe to make a plot from a custom datatype.
In these plots I would like to have a completely blank white background, in other words have no visible axis. Normally to make a plot like this I would use
hidespines!(ax)
hidedecorations!(ax)
but I cannot figure out how to achieve this from within a recipe. I am wondering if something like this:
using CairoMakie@recipe(MyPlot,x,y) do scene
Theme(
plot_color = :red
)
endfunction Makie.plot!(p::MyPlot)
scatter!(p,p[1],p[2],color = p.plot_color)
ax = current_axis(p)
hidedecorations!(ax)
hidespines!(ax)
endmyplot([1,2],[3,4])
could work?