Thanks! Thats exactly what I was looking for!

Mathew

Michael Droettboom wrote:
> If you can convert your polygon to a path, you can use the 
> "contains_point" method:
>
> >>> from matplotlib import path
> >>> p = path.Path([[0,0], [42, 3], [45, 23], [1, 32]])
> >>> p.contains_point([5,5])
> 1
> >>> p.contains_point([72, 3])
> 0
>
> Mike
>
> Mathew Yeates wrote:
>> Is there a routine in matplotlib for telling whether  a point is 
>> inside a convex 4 sided polygon?
>>
>> Mathew
>>
>>
>>
>> ------------------------------------------------------------------------- 
>>
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win 
>> great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the 
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>   
>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to