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

Skip to content

Commit 2333c63

Browse files
committed
Fix keymap for _ToolEnableNavigation.
The keys should be `str`, not `int`.
1 parent 9127525 commit 2333c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class _ToolEnableNavigation(ToolBase):
430430
"""Tool to enable a specific axes for toolmanager interaction."""
431431

432432
description = 'Enable one axes toolmanager'
433-
default_keymap = (1, 2, 3, 4, 5, 6, 7, 8, 9)
433+
default_keymap = ('1', '2', '3', '4', '5', '6', '7', '8', '9')
434434

435435
def trigger(self, sender, event, data=None):
436436
mpl.backend_bases.key_press_handler(event, self.figure.canvas, None)

0 commit comments

Comments
 (0)