@@ -1253,10 +1253,11 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
12531253 --------
12541254 .. plot:: gallery/lines_bars_and_markers/eventplot_demo.py
12551255 """
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 )
12591256
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:
12601261 if not np .iterable (positions ):
12611262 positions = [positions ]
12621263 elif any (np .iterable (position ) for position in positions ):
@@ -1267,6 +1268,11 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
12671268 if len (positions ) == 0 :
12681269 return []
12691270
1271+ poss = []
1272+ for position in positions :
1273+ poss += self ._process_unit_info ([("x" , position )], kwargs )
1274+ positions = poss
1275+
12701276 # prevent 'singular' keys from **kwargs dict from overriding the effect
12711277 # of 'plural' keyword arguments (e.g. 'color' overriding 'colors')
12721278 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,
43084314
43094315 """
43104316 # Process **kwargs to handle aliases, conflicts with explicit kwargs:
4311-
43124317 x , y = self ._process_unit_info ([("x" , x ), ("y" , y )], kwargs )
4313-
43144318 # np.ma.ravel yields an ndarray, not a masked array,
43154319 # unless its argument is a masked array.
43164320 x = np .ma .ravel (x )
0 commit comments