If I understand correctly, using plot(...) as opposed to plot!(...) should replace the contents of the old plot with the new. I’m using the former to create plots but they seem to be overlayed for some reason, and I can’t find a simple way to clear the state of the plot without restarting Julia.