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

Skip to content

Commit fb7bdd7

Browse files
committed
Fix flake8 compliance
1 parent 5587bb4 commit fb7bdd7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/matplotlib/widgets.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,8 +2115,8 @@ def _onmove(self, event):
21152115
vpress = self.eventpress.ydata
21162116

21172117
# move existing span
2118-
# When "dragging from anywhere", the `self._active_handle` is set to 'C'
2119-
# in _set_active_handle (match notation used in the RectangleSelector)
2118+
# When "dragging from anywhere", `self._active_handle` is set to 'C'
2119+
# (match notation used in the RectangleSelector)
21202120
if self._active_handle == 'C' and self._extents_on_press is not None:
21212121
vmin, vmax = self._extents_on_press
21222122
dv = v - vpress
@@ -2261,13 +2261,13 @@ def set_data(self, positions):
22612261

22622262
def set_visible(self, value):
22632263
"""Set the visibility state of the handles artist."""
2264-
for m in self.artists:
2265-
m.set_visible(value)
2264+
for artist in self.artists:
2265+
artist.set_visible(value)
22662266

22672267
def set_animated(self, value):
22682268
"""Set the animated state of the handles artist."""
2269-
for m in self.artists:
2270-
m.set_animated(value)
2269+
for artist in self.artists:
2270+
artist.set_animated(value)
22712271

22722272
def closest(self, x, y):
22732273
"""

0 commit comments

Comments
 (0)