Hi,
Thank you for all the effort that has been put into
the package Plots and the various backend packages.
I’ve followed the various examples showing how to animate a plot and save it as a GIF.
In the course of those examples I have not come across a way to make the animation plot a moving window, say 30 obsertaions:
- first thirty observations are plotted with the animation updated for each observation
- then, on adding 31st observation, the first observation is removed.
- etc.
For instance, in the GR example, the PoLS suggets inserting something like x > 2 ? pop!(p,1) : nothing
but then I just got an error indicating pop!
is not implemented for plots that have been push!
ed to.
Appreciate any hints or tips about the canonical way to go about this using Plots (with the GR backend).