@@ -1107,48 +1107,54 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1107
1107
1108
1108
Parameters
1109
1109
----------
1110
- positions : 1D or 2D array-like object.
1110
+ positions : 1D or 2D array-like object
1111
1111
Each value is an event. If *positions* is a 2D array-like, each
1112
1112
row corresponds to a row or a column of lines (depending on the
1113
1113
*orientation* parameter).
1114
1114
1115
- orientation : str [ 'horizontal' (default) | 'vertical' ], optional.
1116
- 'horizontal' : the lines will be vertical and arranged in rows.
1117
- 'vertical' : the lines will be horizontal and arranged in columns.
1115
+ orientation : {'horizontal', 'vertical'}, optional
1116
+
1117
+ * 'horizontal' : the lines are arranged horizontally in rows,
1118
+ and are vertical.
1119
+ * 'vertical' : the lines are arranged vertically in columns,
1120
+ and are horizontal.
1118
1121
1119
- lineoffsets : scalar or sequence of scalars, optional. Default is 1.
1120
- The offset of the center of the lines from the origin.
1122
+ lineoffsets : scalar or sequence of scalars, optional, default: 1
1123
+ The offset of the center of the lines from the origin, in the
1124
+ orthogonal direction to *orientation*.
1121
1125
1122
- linelengths : scalar or sequence of scalars, optional. Default is 1.
1126
+ linelengths : scalar or sequence of scalars, optional, default: 1
1123
1127
The total height of the lines (i.e. the lines stretches from
1124
- ``lineoffset + linelength/2`` to ``lineoffset - linelength/2``).
1128
+ ``lineoffset - linelength/2`` to ``lineoffset + linelength/2``).
1125
1129
1126
- linewidths : scalar, scalar sequence or None, optional. Default: None.
1127
- If it is None, defaults to its rcParams setting.
1130
+ linewidths : scalar, scalar sequence or None, optional, default: None
1131
+ The line width(s) of the event lines, in points. If it is None,
1132
+ defaults to its rcParams setting.
1128
1133
1129
- colors : color, sequence of colors or None, optional. Default is None.
1130
- If it is None, defaults to its rcParams setting.
1134
+ colors : color, sequence of colors or None, optional, default: None
1135
+ The color(s) of the event lines. If it is None, defaults to its
1136
+ rcParams setting.
1131
1137
1132
- linestyles : str or tuple or a sequence of such values, optional.
1133
- Default is 'solid'. Valid strings are [ 'solid' | 'dashed' |
1134
- 'dashdot' | 'dotted' | '-' | '--' | '-.' | ':' ]. Dash tuples
1135
- have to be of the form::
1138
+ linestyles : str or tuple or a sequence of such values, optional
1139
+ Default is 'solid'. Valid strings are ['solid', 'dashed',
1140
+ 'dashdot', 'dotted', '-', '--', '-.', ':']. Dash tuples
1141
+ should be of the form::
1136
1142
1137
1143
(offset, onoffseq),
1138
1144
1139
1145
where *onoffseq* is an even length tuple of on and off ink
1140
1146
in points.
1141
1147
1142
- kwargs : optional
1148
+ ** kwargs : optional
1143
1149
Other keyword arguments are line collection properties. See
1144
1150
:class:`~matplotlib.collections.LineCollection` for a list of
1145
1151
the valid properties.
1146
1152
1147
1153
For *linelengths*, *linewidths*, *colors*, and *linestyles*, if only
1148
1154
a single value is given, that value is applied to all lines. If an
1149
1155
array-like is given, it must have the same length as positions, and
1150
- each value will be applied to the corresponding row or column in
1151
- positions .
1156
+ each value will be applied to the corresponding row or column of
1157
+ events .
1152
1158
1153
1159
Returns
1154
1160
-------
0 commit comments