![]() set_offsets expects a Nx2 ndarray and you provide a tuple of two 1d arrays.ĭata = np.hstack((x, y))Īnd to save the animation you might want to call: anim.save('animation. The only problem with your example is how you fill the new coordinates in the animate function. Any suggestions on how to correctly animate a scatter plot using the animation package? 2.4 MB (Open Source) View: Rainmeter Home page Rainmeter 4.5 Release Notes Get alerted to all of our Software updates on Twitter at NeowinSoftware. Through Rainmeter, you can enhance your Windows computer at home or work with skins: handy, compact applets which float freely on your desktop, much like Windows Sidebar gadgets, or dashboard widgets for the Mac. The animated plot also flashes several dots during each frame of animation. Rainmeter is a desktop customization platform. Unfortunately, the final animated plot is not the same as original plot. # animation of a scatter plot using x, y from aboveĪnim = animation.FuncAnimation(fig, animate, init_func=init, frames=len(x)+1, Py.close('all') # close all previous plots I am trying to use the FuncAnimation of Matplotlib to animate the display of one dot per frame of animation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |