[Numpy-discussion] Convert data into rectangular grid

Robert Kern robert.kern at gmail.com
Mon Sep 28 20:49:21 EDT 2009


On Mon, Sep 28, 2009 at 19:45, jah <jah.mailinglist at gmail.com> wrote:

> Here is the desired use case:  I have a set of x,y,c values that I could
> pass into matplotlib's scatter() or hexbin().   I'd like to take this same
> set of points and transform them so that I can pass them into matplotlib's
> contour() function.  Perhaps matplotlib has a function which does this.

http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list