Re: [Matplotlib-users] How to plot a 2d streamline in 3d view in matplotlib

2015-05-21 Thread Benjamin Root
Sorry, it is "line_collection_2d_to_3d()". On Thu, May 21, 2015 at 12:02 PM, Raj Kumar Manna wrote: > Its giving a error, > > art3d.linecollection_2d_to_3d(stream.lines) > AttributeError: 'module' object has no attribute 'linecollection_2d_to_3d' > > > > Here is my script, > > > import matplotli

Re: [Matplotlib-users] How to plot a 2d streamline in 3d view in matplotlib

2015-05-21 Thread Raj Kumar Manna
Its giving a error, art3d.linecollection_2d_to_3d(stream.lines) AttributeError: 'module' object has no attribute 'linecollection_2d_to_3d' Here is my script, import matplotlib.pyplot as plt from matplotlib.patches import Circle, PathPatch from mpl_toolkits.mplot3d import Axes3D import mpl_too

Re: [Matplotlib-users] How to plot a 2d streamline in 3d view in matplotlib

2015-05-21 Thread Benjamin Root
(keeping the discussion on the mailing list) The object you get back have two attributes: "lines" and "arrows". This is just psuedo-code, but it would look something like this: ``` stream = ax.streamplot(..) art3d.linecollection_2d_to_3d(stream.lines, ) for p in stream.arrows: art3d.p

Re: [Matplotlib-users] How to plot a 2d streamline in 3d view in matplotlib

2015-05-21 Thread Benjamin Root
Well, there is the new 3D quiver feature: http://matplotlib.org/examples/mplot3d/quiver3d_demo.html. Not quite streamlines, but it might do in a pinch. Another approach: There is the 2d streamplot() function that returns a specialized object. >From the docstring: ``` Returns: *stream_

[Matplotlib-users] How to plot a 2d streamline in 3d view in matplotlib

2015-05-21 Thread Raj Kumar Manna
Hi, I need to plot a 2d streamline in 3d view like this . As suggested by the post , I need to extract streaml