Skip to content

Commit 5246c04

Browse files
committed
fix some doc problems
1 parent 0082466 commit 5246c04

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/users/navigation_toolbar.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ The ``Save`` button
7676
``svg`` and ``pdf``.
7777

7878

79+
.. _key-event-handling:
80+
7981
Navigation Keyboard Shortcuts
8082
-----------------------------
8183

lib/matplotlib/backend_bases.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,14 +2216,14 @@ def stop_event_loop_default(self):
22162216
def key_press_handler(event, canvas, toolbar=None):
22172217
"""
22182218
Implement the default mpl key bindings for the canvas and toolbar
2219-
described at :ref:`navigation-keyboard-shortcuts`
2219+
described at :ref:`key-event-handling`
22202220
22212221
*event*
22222222
a :class:`KeyEvent` instance
22232223
*canvas*
22242224
a :class:`FigureCanvasBase` instance
22252225
*toolbar*
2226-
a class:`NavigationToolbar2` instance
2226+
a :class:`NavigationToolbar2` instance
22272227
22282228
"""
22292229
# these bindings happen whether you are over an axes or not
@@ -2328,7 +2328,7 @@ class FigureManagerBase:
23282328
A :class:`FigureCanvasBase` instance
23292329
23302330
*num*
2331-
The figure nuamber
2331+
The figure number
23322332
"""
23332333
def __init__(self, canvas, num):
23342334
self.canvas = canvas
@@ -2350,7 +2350,7 @@ def resize(self, w, h):
23502350
def key_press(self, event):
23512351
"""
23522352
implement the default mpl key bindings defined at
2353-
:ref:`navigation-keyboard-shortcuts`
2353+
:ref:`key-event-handling`
23542354
"""
23552355
key_press_handler(event, self.canvas, self.canvas.toolbar)
23562356

0 commit comments

Comments
 (0)