@@ -539,7 +539,7 @@ def set_picker(self, picker):
539539
540540 Parameters
541541 ----------
542- picker : None or bool or callable
542+ picker : None or bool or float or callable
543543 This can be one of the following:
544544
545545 - *None*: Picking is disabled for this artist (default).
@@ -548,6 +548,14 @@ def set_picker(self, picker):
548548 artist will fire a pick event if the mouse event is over
549549 the artist.
550550
551+ - A float: If picker is a number it is interpreted as an
552+ epsilon tolerance in points and the artist will fire
553+ off an event if its data is within epsilon of the mouse
554+ event. For some artists like lines and patch collections,
555+ the artist may provide additional data to the pick event
556+ that is generated, e.g., the indices of the data within
557+ epsilon of the pick event
558+
551559 - A function: If picker is callable, it is a user supplied
552560 function which determines whether the artist is hit by the
553561 mouse event::
@@ -557,11 +565,6 @@ def set_picker(self, picker):
557565 to determine the hit test. if the mouse event is over the
558566 artist, return *hit=True* and props is a dictionary of
559567 properties you want added to the PickEvent attributes.
560-
561- - *deprecated*: For `.Line2D` only, *picker* can also be a float
562- that sets the tolerance for checking whether an event occurred
563- "on" the line; this is deprecated. Use `.Line2D.set_pickradius`
564- instead.
565568 """
566569 self ._picker = picker
567570
0 commit comments