8000 Removing prints · OceanWolf/matplotlib@482e247 · GitHub
[go: up one dir, main page]

Skip to content

Commit 482e247

Browse files
committed
Removing prints
1 parent 128f1a7 commit 482e247

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,39 +2403,6 @@ def stop_event_loop_default(self):
24032403
self._looping = False
24042404

24052405

2406-
def key_press_handler(event, canvas, toolbar=None):
2407-
"""
2408-
Implement the default mpl key bindings for the canvas and toolbar
2409-
described at :ref:`key-event-handling`
2410-
2411-
*event*
2412-
a :class:`KeyEvent` instance
2413-
*canvas*
2414-
a :class:`FigureCanvasBase` instance
2415-
*toolbar*
2416-
a :class:`NavigationToolbar2` instance
2417-
2418-
"""
2419-
if event.inaxes is None:
2420-
return
2421-
2422-
elif (event.key.isdigit() and event.key != '0&# DA53 39;) or event.key in all:
2423-
# keys in list 'all' enables all axes (default key 'a'),
2424-
# otherwise if key is a number only enable this particular axes
2425-
# if it was the axes, where the event was raised
2426-
if not (event.key in all):
2427-
n = int(event.key) - 1
2428-
for i, a in enumerate(canvas.figure.get_axes()):
2429-
# consider axes, in which the event was raised
2430-
# FIXME: Why only this axes?
2431-
if event.x is not None and event.y is not None \
2432-
and a.in_axes(event):
2433-
if event.key in all:
2434-
a.set_navigate(True)
2435-
else:
2436-
a.set_navigate(i == n)
2437-
2438-
24392406
class NonGuiException(Exception):
24402407
pass
24412408

@@ -2461,7 +2428,7 @@ def __init__(self, figure, event=None):
24612428
self.activate(event)
24622429

24632430
def activate(self, event):
2464-
print('Without action:', self.name, self.description)
2431+
pass
24652432

24662433

24672434
class ToolQuit(ToolBase):

0 commit comments

Comments
 (0)
0