On Thu, Jan 19, 2012 at 12:01 PM, Moore, Eric (NIH/NIDDK) [F] <eric.moore2@nih.gov> wrote:
> -----Original Message-----
> From: alw46 [mailto:amandalaurelwebb@gmail.com]
> Sent: Thursday, January 19, 2012 11:31 AM
> To: matplotlib-users@lists.sourceforge.net
> Subject: [Matplotlib-users] Plotting contour in X-Z plane
> Hi All,
> I have a question similar to one posted on Aug 30, 2011 titled
> "Plotting 2D
> contourf in Axes3D X-Z plane instead of X-Y plane".  In fact, it is the
> same
> question, and I can't seem to find a satisfactory answer anywhere.
> I've attached an image of what I've done in the X-Y plane for
> reference.
> Like the other post, I'd like to do something similar to what I've done
> in
> the X-Y direction, but in the X-Z and Y-Z planes.  Since I've set up a
> grid
> of points throughout the space, this effectively allows me to take
> "section
> cuts" in different directions in the space.  But I can't seem to figure
> out
> how to do it.  I've switched around the "z-dir", as well as replacing X
> and
> Y with Z in ax.contourf.  For reference, I'm using matplotlib 1.1.0.
> I'm trying to achieve a similar affect to Mayavi's 'image_plane_widget'
> to
> take volume slices, but using matplotlib.
> http://old.nabble.com/file/p33168965/contours_xy.png
> --
> View this message in context: http://old.nabble.com/Plotting-contour-
> in-X-Z-plane-tp33168965p33168965.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.

I've attached a function that I think does something similar to what you want, although without quite all of the bells and whistles you're looking for.  I'm sure there are better ways than just plotting so many lines, but it worked for quickly looking at some data for me.



That is a neat example.  Do you mind if I clean it up and include it in the mpl gallary?

Ben Root