@@ -1091,9 +1091,10 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1091
1091
linelengths = 1 , linewidths = None , colors = None ,
1092
1092
linestyles = 'solid' , ** kwargs ):
1093
1093
"""
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.
1097
1098
1098
1099
This type of plot is commonly used in neuroscience for representing
1099
1100
neural events, where it is usually called a spike raster, dot raster,
@@ -1105,7 +1106,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1105
1106
date of hurricanes each year of the last century.
1106
1107
1107
1108
Parameters
1108
- ==========
1109
+ ----------
1109
1110
positions : 1D or 2D array-like object.
1110
1111
Each value is an event. If *positions* is a 2D array-like, each
1111
1112
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,
1138
1139
where *onoffseq* is an even length tuple of on and off ink
1139
1140
in points.
1140
1141
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.
1145
1147
1146
1148
kwargs are :class:`~matplotlib.collections.LineCollection` properties:
1147
1149
1148
1150
%(LineCollection)s
1149
1151
1150
1152
Returns
1151
- =======
1153
+ -------
1152
1154
1153
1155
A list of :class:`matplotlib.collections.EventCollection` objects that
1154
1156
were added.
1155
1157
1156
1158
Example
1157
- =======
1159
+ -------
1158
1160
1159
1161
.. plot:: mpl_examples/pylab_examples/eventplot_demo.py
1160
1162
"""
0 commit comments