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

Skip to content

Commit 824a398

Browse files
author
root
committed
Should be the last push for linting
1 parent 4b6fb18 commit 824a398

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,9 +3049,10 @@ def mouse_move(self, event):
30493049
+ (event.ydata - y_data[i])**2)**0.5
30503050
if distance < 0.05:
30513051
(self.set_hover_message("Data Label: "
3052-
+ hover[i] +
3053-
" Original coords: "
3054-
))
3052+
+ hover[i] +
3053+
" " +
3054+
"Original coords: "
3055+
))
30553056
else:
30563057
self.set_hover_message(self._mouse_event_to_message(event))
30573058
else:

lib/matplotlib/tests/test_toolkit.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313

1414
# print(matplotlib.__version__, matplotlib.__file__)
1515

16-
fig, ax = plt.subplots()
17-
plt.ylabel('some numbers')
16+
# fig, ax = plt.subplots()
17+
# plt.ylabel('some numbers')
1818

1919

20-
def user_defined_function(event):
21-
return round(event.xdata * 10, 1), round(event.ydata + 3, 3)
20+
# def user_defined_function(event):
21+
# return round(event.xdata * 10, 1), round(event.ydata + 3, 3)
2222

23-
ax.plot(rand(100), 'o', hover=user_defined_function)
24-
plt.show()
23+
# ax.plot(rand(100), 'o', hover=user_defined_function)
24+
# plt.show()
2525

2626
# Alternative test for testing out string literals as tooltips:
2727

28-
# fig, ax = plt.subplots()
29-
# plt.ylabel('some numbers')
28+
fig, ax = plt.subplots()
29+
plt.ylabel('some numbers')
3030

31-
# ax.plot(rand(3), 'o', hover=['London','Paris','Barcelona'])
32-
# plt.show()
31+
ax.plot(rand(3), 'o', hover=['London','Paris','Barcelona'])
32+
plt.show()

0 commit comments

Comments
 (0)