MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _in_patch

Method _in_patch

lib/matplotlib/patches.py:2943–2949  ·  view source on GitHub ↗

Return a predicate function testing whether a point *xy* is contained in *patch*.

(self, patch)

Source from the content-addressed store, hash-verified

2941 helper methods.
2942 """
2943 def _in_patch(self, patch):
2944 """
2945 Return a predicate function testing whether a point *xy* is
2946 contained in *patch*.
2947 """
2948 return lambda xy: patch.contains(
2949 SimpleNamespace(x=xy[0], y=xy[1]))[0]
2950
2951 def _clip(self, path, in_start, in_stop):
2952 """

Callers 1

__call__Method · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected