<divid="unreleased-message"> You are reading an old version of the documentation (v1.2.1). For the latest version see <ahref="/stable/">https://matplotlib.org/stable/</a></div>
<spanid="matplotlib-nxutils"></span><h2><aclass="reference internal" href="#module-matplotlib.nxutils" title="matplotlib.nxutils"><ttclass="xref py py-mod docutils literal"><spanclass="pre">matplotlib.nxutils</span></tt></a><aclass="headerlink" href="#module-matplotlib.nxutils" title="Permalink to this headline">¶</a></h2>
<dlclass="function">
<dtid="matplotlib.nxutils.pnpoly">
<ttclass="descclassname">matplotlib.nxutils.</tt><ttclass="descname">pnpoly</tt><big>(</big><em>x</em>, <em>y</em>, <em>xyverts</em><big>)</big><aclass="headerlink" href="#matplotlib.nxutils.pnpoly" title="Permalink to this definition">¶</a></dt>
<dd><p>inside = pnpoly(x, y, xyverts)</p>
<p>Return 1 if x,y is inside the polygon, 0 otherwise.</p>
<dlclass="docutils">
<dt><em>xyverts</em></dt>
<dd>a sequence of x,y vertices.</dd>
</dl>
<p>A point on the boundary may be treated as inside or outside.</p>
<divclass="deprecated">
<p><span>Deprecated since version 1.2.0: </span>Use <aclass="reference internal" href="path_api.html#matplotlib.path.Path.contains_point" title="matplotlib.path.Path.contains_point"><ttclass="xref py py-meth docutils literal"><spanclass="pre">contains_point()</span></tt></a> instead.</p>
</div>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.nxutils.points_inside_poly">
<ttclass="descclassname">matplotlib.nxutils.</tt><ttclass="descname">points_inside_poly</tt><big>(</big><em>xypoints</em>, <em>xyverts</em><big>)</big><aclass="headerlink" href="#matplotlib.nxutils.points_inside_poly" title="Permalink to this definition">¶</a></dt>