On Wed, Apr 29, 2009 at 9:59 AM, marcog <ma...@gallotta.co.za> 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
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to