Effects of using empty!(scene) in Makie.jl

The following script throws an error:

using CairoMakie
s = Scene()
scatter!(s,[0,0,1/2,1/2],[0,1/2,0,1/2])
display(s)
empty!(s)
scatter!(s,[0,0,-1/2,-1/2],[0,-1/2,0,-1/2])
display(s)

KeyError: key :markercolor not found

Is this behavior a bug or not? The first call to scatter!() works as intended, and the scene is displayed. The second call to scatter!() throws the error. What is going on here?

That seems to be a bug, probably the theme gets cleared out and some plot init code assumes it’s still there. Could you open an issue to track this?

I updated Makie and CairoMakie and the error is gone, I can empty and refill a scene as expected.