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

Skip to content

Commit 74aeb91

Browse files
committed
Document limitations of Path.contains_point() and clarify its semantics
1 parent 20bc2b2 commit 74aeb91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def contains_point(self, point, transform=None, radius=0.0):
527527
The current algorithm has some limitations:
528528
529529
- The result is undefined for points exactly at the boundary
530-
(including *radius*).
530+
(i.e. at the path shifted by *radius/2*).
531531
- The result is undefined if there is no enclosed area, i.e. all
532532
vertices are on a straight line.
533533
- If bounding lines start to cross each other due to *radius* shift,
@@ -577,7 +577,7 @@ def contains_points(self, points, transform=None, radius=0.0):
577577
The current algorithm has some limitations:
578578
579579
- The result is undefined for points exactly at the boundary
580-
(including *radius*).
580+
(i.e. at the path shifted by *radius/2*).
581581
- The result is undefined if there is no enclosed area, i.e. all
582582
vertices are on a straight line.
583583
- If bounding lines start to cross each other due to *radius* shift,

0 commit comments

Comments
 (0)