animating scatter points (from files)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

animating scatter points (from files)

Heiland, Randy
Hello,

I have a use case of wanting to “animate” scatter points whose coordinates are being written to files (per time step). So, basically, I’d like to be able to loop over reading the files in a directory, parse them to extract coords, and smoothly plot the points in a window. The number of points will change per time step. Suggestions? Do I want to use the FuncAnimation method or something else?

thanks!
Randy


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: animating scatter points (from files)

Ryan May-3
That sounds like a perfect use for FuncAnimation with plot() or scatter() to me. You only really need to use scatter if you want to change the size/color of points based on another variable.

Ryan

On Tue, Jan 2, 2018 at 12:21 PM, Heiland, Randy <[hidden email]> wrote:
Hello,

I have a use case of wanting to “animate” scatter points whose coordinates are being written to files (per time step). So, basically, I’d like to be able to loop over reading the files in a directory, parse them to extract coords, and smoothly plot the points in a window. The number of points will change per time step. Suggestions? Do I want to use the FuncAnimation method or something else?

thanks!
Randy


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



--
Ryan May


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users