From 5ba7a83aff36ff664d2c7339fc7e3423c748e630 Mon Sep 17 00:00:00 2001 From: aseagram Date: Thu, 16 May 2013 20:48:39 -0700 Subject: [PATCH] Fixed call to path.Path.contains_point from pnpoly. contains_point accepts a list as its first argument. --- lib/matplotlib/nxutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/nxutils.py b/lib/matplotlib/nxutils.py index 9ac5353baf0a..56bdceb0538e 100644 --- a/lib/matplotlib/nxutils.py +++ b/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): """