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? The animated plot also flashes several dots during each frame of animation. 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. 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 If music is really your cup of tea, then you should get the iTunes Player plugin on your desktop to enjoy easy access to all your favorite tracks. ![]() 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 |