Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51107ea

Browse files
committed
Merge pull request #2020 from aseagram/fix_pnpoly
Fixed call to path.Path.contains_point from pnpoly.
2 parents f311ef5 + 5ba7a83 commit 51107ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/nxutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def pnpoly(x, y, xyverts):
2323
mplDeprecation)
2424

2525
p = path.Path(xyverts)
26-
return p.contains_point(x, y)
26+
return p.contains_point([x, y])
2727

2828
def points_inside_poly(xypoints, xyverts):
2929
"""

0 commit comments

Comments
 (0)