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

Skip to content

Commit c3d7e8d

Browse files
committed
Apply most of the docstring fixes requested by anntzer
1 parent fb0afb1 commit c3d7e8d

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,10 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
10911091
linelengths=1, linewidths=None, colors=None,
10921092
linestyles='solid', **kwargs):
10931093
"""
1094-
Plot identical parallel lines at the given positions. positions should
1095-
be a 1D or 2D array-like object, with each row corresponding to a row
1096-
or column of lines.
1094+
Plot identical parallel lines at the given positions.
1095+
1096+
*positions* should be a 1D or 2D array-like object, with each row
1097+
corresponding to a row or column of lines.
10971098
10981099
This type of plot is commonly used in neuroscience for representing
10991100
neural events, where it is usually called a spike raster, dot raster,
@@ -1105,7 +1106,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11051106
date of hurricanes each year of the last century.
11061107
11071108
Parameters
1108-
==========
1109+
----------
11091110
positions : 1D or 2D array-like object.
11101111
Each value is an event. If *positions* is a 2D array-like, each
11111112
row corresponds to a row or a column of lines (depending on the
@@ -1138,23 +1139,24 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11381139
where *onoffseq* is an even length tuple of on and off ink
11391140
in points.
11401141
1141-
For linelengths, linewidths, colors, and linestyles, if only a single
1142-
value is given, that value is applied to all lines. If an array-like
1143-
is given, it must have the same length as positions, and each value
1144-
will be applied to the corresponding row or column in positions.
1142+
For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only
1143+
a single value is given, that value is applied to all lines. If an
1144+
array-like is given, it must have the same length as positions, and
1145+
each value will be applied to the corresponding row or column in
1146+
positions.
11451147
11461148
kwargs are :class:`~matplotlib.collections.LineCollection` properties:
11471149
11481150
%(LineCollection)s
11491151
11501152
Returns
1151-
=======
1153+
-------
11521154
11531155
A list of :class:`matplotlib.collections.EventCollection` objects that
11541156
were added.
11551157
11561158
Example
1157-
=======
1159+
-------
11581160
11591161
.. plot:: mpl_examples/pylab_examples/eventplot_demo.py
11601162
"""

lib/matplotlib/collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ def __init__(self,
12631263
):
12641264
"""
12651265
Parameters
1266-
==========
1266+
----------
12671267
positions : 1D array-like object or None.
12681268
Each value is an event.
12691269
@@ -1304,7 +1304,7 @@ def __init__(self,
13041304
%(LineCollection)s
13051305
13061306
Example
1307-
=======
1307+
-------
13081308
13091309
.. plot:: mpl_examples/pylab_examples/eventcollection_demo.py
13101310
"""

0 commit comments

Comments
 (0)