How to plot coarse-grained average of a set of data points?
<p>I have a set of discrete 2-dimensional data points.  Each of these points has a measured value associated with it.  I would like to get a scatter plot with points colored by their measured values.  But the data points are so dense that points with different colors would overlap with each other, that may not be good for visualization. So I am thinking if I could associate the color for each point based on the coarse-grained average of measured values of some points near it.  Does anyone know how to implement this in Python? </p>

<p>Thanks!</p>