Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,8 @@ def _compute_conf_interval(data, med, iqr, bootstrap):
if labels is None:
labels = itertools.repeat(None)
elif len(labels) != ncols:
raise ValueError("Dimensions of labels and X must be compatible")
raise ValueError(f"The number of labels ({len(labels)}) must match the"
f" number of columns ({ncols}).")

input_whis = whis
for ii, (x, label) in enumerate(zip(X, labels)):
Expand Down