> -----Original Message-----
> From: alw46 [mailto:amandalaurelw...@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.

Eric

Attachment: cntr3d.py
Description: cntr3d.py

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to