From: John H. <jd...@gm...> - 2009-04-29 15:29:23
|
On Wed, Apr 29, 2009 at 9:59 AM, marcog <ma...@ga...> wrote: > > Hi > > I have a set of 2 dimensional data that I would like to form a histogram > of. > Each data point is defined by an x and y variable. So essentially what I > would like to obtain is a "row" of histograms as produced by the plot.hist > function, stacking them next to one another in a single 3D plot. For > example, something like [1], but I don't need it to be interpolated. > > [1] http://www.mathworks.com/matlabcentral/fx_files/14205/1/hist.jpg hexbin may be what you are looking for, which does a 2D colormapped histogram, with an optional reduce function so you can specify the intensity function over the bins http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.hexbin http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo2.html JDH |