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

Skip to content

Commit bf83d3e

Browse files
author
root
committed
further linter fixes
1 parent d6a1d31 commit bf83d3e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,10 +3045,11 @@ def mouse_move(self, event):
30453045
x_data = line.get_xdata()
30463046
y_data = line.get_ydata()
30473047
for i in range(len(x_data)):
3048-
distance = ((event.xdata - x_data[i])**2
3048+
distance = ((event.xdata - x_data[i])**2
30493049
+ (event.ydata - y_data[i])**2)**0.5
30503050
if distance < 0.05:
3051-
(self.set_hover_message("Data Label: "+ hover[i] +
3051+
(self.set_hover_message("Data Label: "
3052+
+ hover[i] +
30523053
" Original coords: "
30533054
))
30543055
else:

lib/matplotlib/tests/test_toolkit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def user_defined_function(event):
2525

2626

2727

28-
############################################################################
28+
###############################################################################
2929

30-
#Alternative test for testing out string literals as tooltips
30+
# Alternative test for testing out string literals as tooltips
3131

3232
# fig, ax = plt.subplots()
3333
# plt.ylabel('some numbers')

0 commit comments

Comments
 (0)