Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2cdb5aa

Browse filesBrowse files
authored
Merge pull request #6947 from dlmccaffrey/errorbar-error-msg
MNT: Changed error message Closes #6933
2 parents 771707f + bde146b commit 2cdb5aa
Copy full SHA for 2cdb5aa

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,8 +2956,8 @@ def extract_err(err, data):
29562956
fe = safe_first_element(err)
29572957
if not ((len(err) == len(data) and not (iterable(fe) and
29582958
len(fe) > 1))):
2959-
raise ValueError("err must be a scalar, the same "
2960-
"dimensions as x, or 2xN.")
2959+
raise ValueError("err must be [ scalar | N, Nx1 "
2960+
"or 2xN array-like ]")
29612961
# using list comps rather than arrays to preserve units
29622962
low = [thisx - thiserr for (thisx, thiserr)
29632963
in cbook.safezip(data, err)]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.