The outer plot method mutates the layout argument, so you need to refresh it for every iteration (or just use a copy). This is not specific to animations.
The outer plot method mutates the layout argument, so you need to refresh it for every iteration (or just use a copy). This is not specific to animations.