There was an error while loading. Please reload this page.
2 parents 6db85a3 + 0f2ebb6 commit 2153774Copy full SHA for 2153774
1 file changed
lib/matplotlib/cbook.py
@@ -1265,7 +1265,8 @@ def _compute_conf_interval(data, med, iqr, bootstrap):
1265
if labels is None:
1266
labels = itertools.repeat(None)
1267
elif len(labels) != ncols:
1268
- raise ValueError("Dimensions of labels and X must be compatible")
+ raise ValueError(f"The number of labels ({len(labels)}) must match the"
1269
+ f" number of columns ({ncols}).")
1270
1271
input_whis = whis
1272
for ii, (x, label) in enumerate(zip(X, labels)):
0 commit comments