Return a predicate function testing whether a point *xy* is contained in *patch*.
(self, patch)
| 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 | """ |