numpy.histogram2d(x, y, bins=10, range=None, normed=False, weights=None) [source]
Compute the bi-dimensional histogram of two data samples. Parameters:
x : array_like, shape (N,) An array containing the x coordinates of the points to be histogrammed. y : array_like, shape (N,) An array containing the y coordinates of the points to be histogrammed. bins : int or array_like or [int, int] or [array, array], optional The bin specification: If int, the number of bins for the two dimension