Skip to content

Commit 6713a76

Browse files
committed
Remove string intperpolation in docstrings (+ minor typo fix)
1 parent fc212ee commit 6713a76

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,16 +1139,17 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11391139
where *onoffseq* is an even length tuple of on and off ink
11401140
in points.
11411141
1142+
kwargs : optional
1143+
Other keyword arguments are line collection properties. See
1144+
:class:`~matplotlib.collections.LineCollection` for a list of
1145+
the valid properties.
1146+
11421147
For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only
11431148
a single value is given, that value is applied to all lines. If an
11441149
array-like is given, it must have the same length as positions, and
11451150
each value will be applied to the corresponding row or column in
11461151
positions.
11471152
1148-
kwargs are :class:`~matplotlib.collections.LineCollection` properties:
1149-
1150-
%(LineCollection)s
1151-
11521153
Returns
11531154
-------
11541155

lib/matplotlib/collections.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ class EventCollection(LineCollection):
12441244
A collection of discrete events.
12451245
12461246
The events are a 1-dimensional array, usually the position of something
1247-
along an axis, such as time or length. The do not have an amplitude and
1247+
along an axis, such as time or length. They do not have an amplitude and
12481248
are displayed as vertical or horizontal parallel bars.
12491249
'''
12501250

@@ -1297,10 +1297,10 @@ def __init__(self,
12971297
antialiased : [None (default) | 1 | 2], optional.
12981298
If it is None, defaults to its rcParams setting, in sequence form.
12991299
1300-
Additional kwargs of :class:`~matplotlib.collections.LineCollection`
1301-
can also be used:
1302-
1303-
%(LineCollection)s
1300+
kwargs : optional
1301+
Other keyword arguments are line collection properties. See
1302+
:class:`~matplotlib.collections.LineCollection` for a list of
1303+
the valid properties.
13041304
13051305
Example
13061306
-------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy