@@ -1253,10 +1253,11 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1253
1253
--------
1254
1254
.. plot:: gallery/lines_bars_and_markers/eventplot_demo.py
1255
1255
"""
1256
- # We do the conversion first since not all unitized data is uniform
1257
- positions , lineoffsets , linelengths = self ._process_unit_info (
1258
- [("x" , positions ), ("y" , lineoffsets ), ("y" , linelengths )], kwargs )
1259
1256
1257
+ lineoffsets , linelengths = self ._process_unit_info (
1258
+ [("y" , lineoffsets ), ("y" , linelengths )], kwargs )
1259
+
1260
+ # fix positions, noting that it can be a list of lists:
1260
1261
if not np .iterable (positions ):
1261
1262
positions = [positions ]
1262
1263
elif any (np .iterable (position ) for position in positions ):
@@ -1267,6 +1268,11 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1267
1268
if len (positions ) == 0 :
1268
1269
return []
1269
1270
1271
+ poss = []
1272
+ for position in positions :
1273
+ poss += self ._process_unit_info ([("x" , position )], kwargs )
1274
+ positions = poss
1275
+
1270
1276
# prevent 'singular' keys from **kwargs dict from overriding the effect
1271
1277
# of 'plural' keyword arguments (e.g. 'color' overriding 'colors')
1272
1278
colors = cbook ._local_over_kwdict (colors , kwargs , 'color' )
@@ -4308,9 +4314,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4308
4314
4309
4315
"""
4310
4316
# Process **kwargs to handle aliases, conflicts with explicit kwargs:
4311
-
4312
4317
x , y = self ._process_unit_info ([("x" , x ), ("y" , y )], kwargs )
4313
-
4314
4318
# np.ma.ravel yields an ndarray, not a masked array,
4315
4319
# unless its argument is a masked array.
4316
4320
x = np .ma .ravel (x )
0 commit comments