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

Skip to content

Commit f9c7b67

Browse files
aseagrammdboom
aseagram
authored andcommitted
Fixed call to path.Path.contains_point from pnpoly. contains_point accepts a list as its first argument.
1 parent accd49c commit f9c7b67

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)