How to create 3D scatter animations

The scatter plot in 3D is a mpl_toolkits.mplot3d.art3d.Path3DCollection object. This provides an attribute _offsets3d which hosts a tuple (x,y,z) and can be used to update the scatter points’ coordinates. Therefore it may be beneficial not to create the whole plot on every iteration of the animation, but instead only update its points. The following is … Read more