I would like to set once and for all the background of my axes and figures to be transparent. I thought I could do that as a theme in Makie.jl. The following minimal code fails to produce a transparent background
using CairoMakie
CairoMakie.activate!()
theme = Theme(
Figure = (backgroundcolor = :transparent,),
Axis = (backgroundcolor = :transparent,)
)
set_theme!(theme)
fig = Figure()
ax = Axis(fig[1, 1])
lines!(ax, 1:10, rand(10))
save("transparent_test.svg", fig)
whereas the intrusive instructions
fig = Figure(backgroundcolor = :transparent)
ax = Axis(fig[1, 1], backgroundcolor = :transparent)
work well.
Is there a way to setup the background transparency from a theme, or am I missing something?