Skip to content

Commit 9b0118f

Browse files
committed
fixed usermedian shape logic (again)
1 parent f2aea5b commit 9b0118f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2945,7 +2945,7 @@ def boxplot(self, x, notch=False, sym='b+', vert=True, whis=1.5,
29452945

29462946
# replace medians if necessary:
29472947
if usermedians is not None:
2948-
if (len(np.ravel(usermedians)) != len(bxpstats) and
2948+
if (len(np.ravel(usermedians)) != len(bxpstats) or
29492949
np.shape(usermedians)[0] != len(bxpstats)):
29502950
medmsg = 'usermedians length not compatible with x'
29512951
raise ValueError(medmsg)

0 commit comments

Comments
 (0)