Skip to content

Commit 058af73

Browse files
committed
FIX: let boxplot take pandas position
1 parent dfb8936 commit 058af73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3644,6 +3644,8 @@ def dopatch(xs, ys, **kwargs):
36443644
datashape_message = ("List of boxplot statistics and `{0}` "
36453645
"values must have same the length")
36463646
# check position
3647+
if hasattr(positions, 'values'):
3648+
positions = positions.values
36473649
if positions is None:
36483650
positions = list(range(1, N + 1))
36493651
elif len(positions) != N:

0 commit comments

Comments
 (0)