Skip to content

Commit 0a744f0

Browse files
LangQi99timhoffm
andauthored
Update lib/matplotlib/backend_bases.py
"X" would be generated by "Shift+x" Co-authored-by: Tim Hoffmann <[email protected]>
1 parent f8583e0 commit 0a744f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,8 +2605,8 @@ def scroll_handler(event, canvas=None, toolbar=None):
26052605

26062606
scale_factor = 0.85 ** event.step
26072607
# Determine which axes to scale based on key
2608-
zoom_x = event.key in {"control", "x", "X"}
2609-
zoom_y = event.key in {"control", "y", "Y"}
2608+
zoom_x = event.key in {"control", "x"}
2609+
zoom_y = event.key in {"control", "y"}
26102610

26112611
if zoom_x:
26122612
new_xmin = x - (x - xmin) * scale_factor

0 commit comments

Comments
 (0)