From: Daniel W. <dan...@ni...> - 2005-04-21 21:37:31
|
Is it currently possible to make contour plots using unstructured data with matplotlib? By unstructured data I mean the typical data from a 2D finite element simulation that uses an unstructured polygonal mesh. As far as I can tell the "pylab.contourf(X, Y, Z)" command requires structured data with X, Y and Z each having to be 2D gridded arrays. I have previously used the gist package to do this type of plotting using the "gist.plfp(Z, X, Y, F)" command. This command allows plotting of polygonal data specified by arrays Z, X, Y, F. - Z is the data value, shape(Z) = (NPolygons) - X is the vertex x coordinates, shape(X) = (NPolygons, NVertices). - Y is vertex y coordinates, shape(Y) = (NPolygons, NVertices) - F is the number of vertices for each cell, shape(F) = (NPolygons) Is there a similar functionality in matplotlib? Thanks ------------------------------------- Daniel Wheeler |