Showing posts with label Scatter. Show all posts
Showing posts with label Scatter. Show all posts

Generate 3D scatter animation using animation.FuncAnimation in Python and matplotlib.pyplot


The result is:

Generate 3D scatter animation using animation.FuncAnimation in Python and matplotlib.pyplot

This page shows how to generate 3D animation of scatter plot using animation.FuncAnimation, python, and matplotlib.pyplot.

Compare plt.plot and plt.scatter in speed in Python and Matplotlib.pyplot


This page compares the speed of "plt.plot" and "plt.scatter" to generate same following figure:

Compare plt.plot and plt.scatter in speed in Python and Matplotlib.pyplot

It seems that "plt.plot" is faster than "plt.scatter" to plot simple and large point scatter plot.

Kernel density estimation using Python, matplotlib.pyplot and scipy.stats.gaussian_kde


The result is:

Kernel density estimation using Python, matplotlib.pyplot and scipy.stats.gaussian_kde

This page shows how to change the color of the scatter point according to the density of the surrounding points using python and scipy.stats.gaussian_kde and matplotlib.