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
Block and plot objects can be themed by key, and Figure isn’t one of them, though I don’t know how specifying it could interfere. Figure doesn’t appear as a key in any of the predefined themes, either. Try following theme_dark and theme_black’s examples by replacing the Figure entry with a direct backgroundcolor = :transparent, hopefully it gels with the Axis’ own transparency.
Thank you @raman_kumar for taking the time to answer. I’ve tried your solution but it was not working, because a field backgroundcolor = :transparent was needed in the main theme (outside axis, see below)
It’s for historical reasons, Scene was the only thing to theme at first so all its keys were top level. Figure is basically Scene so that stayed. Blocks and plot themes came later.