@@ -595,7 +595,7 @@ def get_picker(self):
595595 set_picker, pickable, pick
596596 """
597597 return self ._picker
598-
598+
599599 def hoverable (self ):
600600 """
601601 Return whether the artist is hoverable.
@@ -605,7 +605,7 @@ def hoverable(self):
605605 set_hover, get_hover, hover
606606 """
607607 return self .figure is not None and self ._hover is not None
608-
608+
609609 def hover (self , mouseevent ):
610610 """
611611 Process a hover event.
@@ -624,7 +624,7 @@ def hover(self, mouseevent):
624624 inside , prop = self .contains (mouseevent )
625625 if inside :
626626 HoverEvent ("hover_event" , self .figure .canvas ,
627- mouseevent , self , ** prop )._process ()
627+ mouseevent , self , ** prop )._process ()
628628
629629 # Pick children
630630 for a in self .get_children ():
@@ -640,28 +640,14 @@ def set_hover(self, hover):
640640
641641 Parameters
642642 ----------
643- hover : None or bool or float or function
643+ hover : None or bool
644644 This can be one of the following:
645645
646646 - *None*: Hover is disabled for this artist (default).
647647
648648 - A boolean: If *True* then hover will be enabled and the
649649 artist will fire a hover event if the mouse event is hovering over
650650 the artist.
651-
652- - A float: If hover is a number it is interpreted as an
653- epsilon tolerance in points and the artist will fire
654- off an event if its data is within epsilon of the mouse
655- event. For some artists like lines and patch collections,
656- the artist may provide additional data to the hover event
657- that is generated, e.g., the indices of the data within
658- epsilon of the hover event
659-
660- - A function: If hover is callable, it is a user supplied
661- function which determines whether the artist is hit by the
662- mouse event to determine the hit test. If the mouse event
663- is over the artist, return *hit=True* and props is a dictionary of
664- properties you want added to the HoverEvent attributes.
665651 """
666652 if not self .figure and hover is not None :
667653 raise ValueError ("Cannot hover without an existing figure" )
0 commit comments