Re: [Matplotlib-users] determining of a line segment is a Line2D

2011-08-19 Thread Benjamin Root
On Mon, Aug 15, 2011 at 4:56 PM, Mathew Yeates mat.yea...@gmail.com wrote:

 Hi
 Is there a simple way to do the following

 l1=Line2D(xdata=[1,2,3],ydata=[4,5,6])

 l2=Line2D(xdata = [1].ydata=[3])

 if l2 in l1 #error, Line2D not iterable


 -Mathew


Haven't tried it, but you might want to look at
matplotlib.path.contains_path() or matplotlib.path.path_in_path()?

Ben Root
--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] determining of a line segment is a Line2D

2011-08-15 Thread Mathew Yeates
Hi
Is there a simple way to do the following

l1=Line2D(xdata=[1,2,3],ydata=[4,5,6])

l2=Line2D(xdata = [1].ydata=[3])

if l2 in l1 #error, Line2D not iterable


-Mathew

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users