Permalink
Browse files

Fixed call to path.Path.contains_point from pnpoly. contains_point ac…

…cepts a list as its first argument.
  • Loading branch information...
1 parent accd49c commit f9c7b67157f17d1edd243177b88f4584cc77f3d9 @aseagram aseagram committed with mdboom May 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/matplotlib/nxutils.py
@@ -23,7 +23,7 @@ def pnpoly(x, y, xyverts):
mplDeprecation)
p = path.Path(xyverts)
- return p.contains_point(x, y)
+ return p.contains_point([x, y])
def points_inside_poly(xypoints, xyverts):
"""

0 comments on commit f9c7b67

Please sign in to comment.