Access the underlying Makie Figure from an AoG plot
masterWhen you call draw(spec) in AlgebraOfGraphics, it returns a figuregrid object. This object contains two primary fields:
figure: The MakieFigureobject containing all visual elements.grid: An object containingAxisEntriesfor facet layouts.
You can access the figure to perform global modifications like changing the background color or resizing the canvas.
figuregrid = draw(spec)
figure = figuregrid.figure
# Change background color
figure.scene.backgroundcolor = Makie.to_color(:gray90)
# Resize the figure
resize!(figure, 500, 300)