Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove un-used variables
  • Loading branch information
dstansby committed Dec 10, 2021
commit ff8195e131c41275ea7708e1d18297e0f3a43de3
3 changes: 0 additions & 3 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3124,13 +3124,10 @@ def _onmove(self, event):
else:
# change sign of relative changes to simplify calculation
# Switch variables so that x1 and/or y1 are updated on move
x_factor = y_factor = 1
if 'W' in self._active_handle:
x0 = x1
x_factor *= -1
if 'S' in self._active_handle:
y0 = y1
y_factor *= -1
if self._active_handle in ['E', 'W'] + self._corner_order:
x1 = event.xdata
if self._active_handle in ['N', 'S'] + self._corner_order:
Expand Down