Skip to content

Commit 29fcdca

Browse files
QuLogicjklymaktacaswell
committed
DOC: Apply suggestions from review.
Co-authored-by: Jody Klymak <jklymak@gmail.com> Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
1 parent 85e5687 commit 29fcdca

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/matplotlib/backend_bases.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ class DrawEvent(Event):
12451245
Calling ``canvas.draw`` and ``canvas.blit`` in these callbacks may
12461246
not be safe with all backends and may cause infinite recursion.
12471247
1248-
In addition to the `Event` attributes, the following event
1249-
attributes are defined:
1248+
A DrawEvent has a number of special attributes in addition to those defined
1249+
by the parent `Event` class.
12501250
12511251
Attributes
12521252
----------
@@ -1262,8 +1262,8 @@ class ResizeEvent(Event):
12621262
"""
12631263
An event triggered by a canvas resize.
12641264
1265-
In addition to the `Event` attributes, the following event
1266-
attributes are defined:
1265+
A ResizeEvent has a number of special attributes in addition to those
1266+
defined by the parent `Event` class.
12671267
12681268
Attributes
12691269
----------
@@ -1285,13 +1285,13 @@ class LocationEvent(Event):
12851285
"""
12861286
An event that has a screen location.
12871287
1288-
In addition to the `Event` attributes, the following event attributes are
1289-
defined:
1288+
A LocationEvent has a number of special attributes in addition to those
1289+
defined by the parent `Event` class.
12901290
12911291
Attributes
12921292
----------
12931293
x, y : int or None
1294-
Position in figure coordinates (pixels from bottom left of canvas).
1294+
Event location in pixels from bottom left of canvas.
12951295
inaxes : `~.axes.Axes` or None
12961296
The `~.axes.Axes` instance over which the mouse is, if any.
12971297
xdata, ydata : float or None
@@ -1373,8 +1373,8 @@ class MouseEvent(LocationEvent):
13731373
A mouse event ('button_press_event', 'button_release_event', \
13741374
'scroll_event', 'motion_notify_event').
13751375
1376-
In addition to the `Event` and `LocationEvent` attributes, the below event
1377-
attributes are defined.
1376+
A MouseEvent has a number of special attributes in addition to those
1377+
defined by the parent `Event` and `LocationEvent` classes.
13781378
13791379
Attributes
13801380
----------
@@ -1442,8 +1442,8 @@ class PickEvent(Event):
14421442
sufficiently close to an artist that has been made pickable with
14431443
`.Artist.set_picker`.
14441444
1445-
In addition to the `Event` attributes, the below event attributes are
1446-
defined.
1445+
A PickEvent has a number of special attributes in addition to those defined
1446+
by the parent `Event` class.
14471447
14481448
Attributes
14491449
----------
@@ -1484,13 +1484,13 @@ class KeyEvent(LocationEvent):
14841484
"""
14851485
A key event (key press, key release).
14861486
1487-
In addition to the `Event` and `LocationEvent` attributes, the below event
1488-
attributes are defined.
1487+
A KeyEvent has a number of special attributes in addition to those defined
1488+
by the parent `Event` and `LocationEvent` classes.
14891489
14901490
Attributes
14911491
----------
14921492
key : None or str
1493-
The key(s) pressed. Could be *None*, a single case sensitive ASCII
1493+
The key(s) pressed. Could be *None*, a single case sensitive Unicode
14941494
character ("g", "G", "#", etc.), a special key ("control", "shift",
14951495
"f1", "up", etc.) or a combination of the above (e.g., "ctrl+alt+g",
14961496
"ctrl+alt+G").

0 commit comments

Comments
 (0)