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

Skip to content

Commit ff8195e

Browse files
committed
Remove un-used variables
1 parent c9582f0 commit ff8195e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,13 +3124,10 @@ def _onmove(self, event):
31243124
else:
31253125
# change sign of relative changes to simplify calculation
31263126
# Switch variables so that x1 and/or y1 are updated on move
3127-
x_factor = y_factor = 1
31283127
if 'W' in self._active_handle:
31293128
x0 = x1
3130-
x_factor *= -1
31313129
if 'S' in self._active_handle:
31323130
y0 = y1
3133-
y_factor *= -1
31343131
if self._active_handle in ['E', 'W'] + self._corner_order:
31353132
x1 = event.xdata
31363133
if self._active_handle in ['N', 'S'] + self._corner_order:

0 commit comments

Comments
 (0)