On 7/28/10 8:32 PM, Nikolaus Rath wrote:
> Hello,
>
> What is the best way to generate a contour plot from a set of
> non-uniformly sampled data (i.e., the datapoints do not lie on the
> points of a rectangular grid but are randomly distributed)?
>
>
> Thanks,
>
>     -Nikolaus
>
>    
Nikolaus:  You can either use mlab.griddata to interpolate the data to a 
regular grid, or use pyplot.tricontour to perform a delaunay 
triangulation and contour the resulting triangle values.

-Jeff

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to