matplotlib/matplotlib — Issue #668: squarebin or rectbin function
Author: samtygier
Created: 2012-01-11 16:46:37+00:00
State: open

There currently exists a hexbin function for histogramming 2d data. It would be nice to have a similar function that used square/retangular bins.

Currently this can be done by using numpy.histogram2d() and imshow().
http://www.physics.ucdavis.edu/~dwittman/Matplotlib-examples/
http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html
(note that the numpy docs miss the transpose)

but it would be useful to have this in pylab as a single call.