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

Skip to content

Commit 1cc592b

Browse files
committed
style fixing
1 parent 068e770 commit 1cc592b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/matplotlib/artist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def get_picker(self):
595595
set_picker, pickable, pick
596596
"""
597597
return self._picker
598-
598+
599599
def set_hover(self, hover):
600600
"""
601601
Define the hover status of the artist.
@@ -621,12 +621,12 @@ def set_hover(self, hover):
621621
622622
- A function: If hover is callable, it is a user supplied
623623
function which determines whether the artist is hit by the
624-
mouse event to determine the hit test. if the mouse event
624+
mouse event to determine the hit test. If the mouse event
625625
is over the artist, return *hit=True* and props is a dictionary of
626626
properties you want added to the HoverEvent attributes.
627627
"""
628628
self._hover = hover
629-
629+
630630
def get_hover(self):
631631
"""
632632
Return the hover status of the artist.

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,8 @@ def __str__(self):
14731473
f"xy=({self.x}, {self.y}) xydata=({self.xdata}, {self.ydata}) "
14741474
f"button={self.button} dblclick={self.dblclick} "
14751475
f"inaxes={self.inaxes}")
1476-
1476+
1477+
14771478
class HoverEvent(Event):
14781479
"""
14791480
A hover event.
@@ -1522,6 +1523,7 @@ def __init__(self, name, canvas, mouseevent, artist,
15221523
self.artist = artist
15231524
self.__dict__.update(kwargs)
15241525

1526+
15251527
class PickEvent(Event):
15261528
"""
15271529
A pick event.
@@ -1571,7 +1573,7 @@ def __init__(self, name, canvas, mouseevent, artist,
15711573
self.__dict__.update(kwargs)
15721574

15731575

1574-
class KeyEvent(LocationEvent):
1576+
class KeyEvent(LocationEvent):
15751577
"""
15761578
A key event (key press, key release).
15771579

0 commit comments

Comments
 (0)