Open peterscherpelz opened 2 years ago
@roelof-groenewald Thanks for that example, that's very helpful in thinking about how to generalize this. I like the idea of separately factoring out the different elements, I'll figure out how to do that in a reusable way and update this accordingly when I get a chance.
Also I need to recall if I forgot about the animation
package when I originally wrote this a year ago or if there's a reason I didn't use it... probably the former, if so I'll change it to use that too.
Just a note as I leave this for now - my last commit was exploring the concept of having a MovieMaker class that would basically hold the overall figure, and then iterate through frames either saving each image (and if desired an ffmpeg conversion), or doing a matplotlib animate function. Each axes object inside that would be primarily managed by a separate class, as AnimatedArray (or a future LinePlot or some such for current timeseries w/ a moving bar as Roelof had) and those would be called at each frame to update their respective plots. It's unfinished - not even run once - but I think the concept is sound for flexible movies.
Also fixes a typo in default plotted units