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

Skip to content

Commit 1ec7212

Browse files
committed
Fixing linter errors
1 parent 77bfe8e commit 1ec7212

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,9 @@ def mouse_move(self, event):
30243024
hover = a.get_hover()
30253025
if callable(hover):
30263026
newX, newY = hover(event)
3027-
self.set_hover_message("modified x = " + str(newX) + " modified y = " + str(newY) + " Original coords: ")
3027+
(self.set_hover_message("modified x = " + str(newX)
3028+
+ " modified y = " + str(newY)
3029+
+ " Original coords: "))
30283030
else:
30293031
self.set_hover_message(self._mouse_event_to_message(event))
30303032
else:

lib/matplotlib/tests/test_toolkit.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import matplotlib
22
import matplotlib.pyplot as plt
3-
matplotlib.use('tkagg')
4-
import numpy as np
53
from numpy.random import rand
4+
matplotlib.use('tkagg')
5+
66

77
# Run this if it seems like your chanegs aren't being applied. If this does not
88
# print something along the lines of:
9-
# 3.8.0.dev898+g0a062ed8bf.d20230506 /Users/eslothower/Desktop/matplotlib/lib/matplotlib/__init__.py
9+
# 3.8.0.dev898+g0a062ed8bf.d20230506 /Users/eslothower/Desktop/matplotlib/lib/
10+
# matplotlib/__init__.py
1011
# then this means you did not set up matplotlib for development:
1112
# https://matplotlib.org/stable/devel/development_setup.html
12-
print(matplotlib.__version__, matplotlib.__file__)
13+
14+
# print(matplotlib.__version__, matplotlib.__file__)
1315

1416
fig, ax = plt.subplots()
1517
plt.ylabel('some numbers')
1618

19+
1720
def user_defined_function(event):
1821
return round(event.xdata * 10, 1), round(event.ydata + 3, 3)
1922

0 commit comments

Comments
 (0)