Skip to content

Commit

Permalink
Fixed call to path.Path.contains_point from pnpoly. contains_point ac…
Browse files Browse the repository at this point in the history
…cepts a list as its first argument.
  • Loading branch information
aseagram authored and mdboom committed May 17, 2013
1 parent accd49c commit f9c7b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/nxutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f9c7b67

Please sign in to comment.