On 17 September 2010 16:26, Simon S. Clift <ssclift@gmail.com> wrote:
I have a data set that is in the form of an irregular 2D grid with
associated values, one for each node.  I would like to plot this as a
raised surface, with colours that indicate the z-value.  Somehow I
didn't find just quite the example I was looking for.  After digging
around in the matplotlib and mpl_toolkits.mplot3d I was able to solve
the problem.  To save the next person the trouble, here is my
annotated example.  Comments and improvements are most welcome.  I'd
be happy to have a version of this included as an official example, if
it passes muster.

Thanks for this.  The tripcolor function does what you want in 2D, but it hasn't yet been extended to work with 3D axes.  It was on my 'to do' list, and you've motivated me to start looking at it.  When it's done, your example code can be much simpler as the triangulation and colormap manipulation will all be done for you.

Ian