From: Christoph Piefke <anmeldung@du...>  20120131 06:35:57

Hello everybody, I have a problem transferring from 3D data to a 2D representation. I used mayavi to define a cut plane through a volume data set and got the xyz coordinates for the points on the plane and the data at each point. Now I would like to make a contour plot of that data in matplotlib. My first try was rotating the normal of the cut plane parallel to the zaxes and leaving the data unchanged. Unfortunately, this changed the number of grid points, so I do not know how to fit these both sets together. Is there a convenient way how to sample these 3d data and put it on a 2d grid? Thank you very much in advance, Chris 