So, you would like to plot a surface, and then have some slices through it? Perhaps you are looking for something like this? http://matplotlib.org/examples/mplot3d/contourf3d_demo2.html
In your case, I would use the contourf()'s "zdir" argument to set the direction of the slice's normal vector, and the "offset" argument to set the location of the slice. In this particular example, the three contourf()'s were purposely placed on the edges of the axes, but they can be placed anywhere you want them to be. You will need to supply contourf() with the appropriate surface data to contour. A word of caution. mplot3d's rendering is very crude. When you start to intersect planes together, you will very likely get visual artifacts that I tend to refer to as "Escher-like" in that they are physically impossible. If you want true 3d volume rendering, then you may want to take a look at glumpy or vis3d or mayavi2. I hope that helps! Ben Root On Thu, Apr 3, 2014 at 12:50 AM, james <jar...@gmail.com> wrote: > Hi All, > > I wish to make a 3d volume with a series of slices through it. I have X-Z > data at 15 different Y planes. In MATLAB, I would make a pcolor plot, then > set the Z data to the original ydata, and the Y data to a constant. This > works fine. > > I would like to achieve a similar result in matplotlib, but I cannot figure > out anyway to do it. > > Any help would be appreciated. > > James > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Set-X-Y-and-Z-data-for-a-pcolormesh-tp43187.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users