[Numpy-discussion] Convert data into rectangular grid

Robert Kern robert.kern@gmail....
Mon Sep 28 19:49:21 CDT 2009


On Mon, Sep 28, 2009 at 19:45, jah <jah.mailinglist@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