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

Skip to content

Commit 0955553

Browse files
authored
Merge pull request #16133 from anntzer/line2dcontains
Reword docstring of Line2D.contains.
2 parents 03d98f1 + ed41cd4 commit 0955553

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/lines.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,12 +418,12 @@ def __init__(self, xdata, ydata,
418418

419419
def contains(self, mouseevent):
420420
"""
421-
Test whether the mouse event occurred on the line. The pick
422-
radius determines the precision of the location test (usually
423-
within five points of the value). Use
424-
:meth:`~matplotlib.lines.Line2D.get_pickradius` or
425-
:meth:`~matplotlib.lines.Line2D.set_pickradius` to view or
426-
modify it.
421+
Test whether *mouseevent* occurred on the line.
422+
423+
An event is deemed to have occurred "on" the line if it is less
424+
than ``self.pickradius`` (default: 5 points) away from it. Use
425+
`~.Line2D.get_pickradius` or `~.Line2D.set_pickradius` to get or set
426+
the pick radius.
427427
428428
Parameters
429429
----------

0 commit comments

Comments
 (0)