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