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 6937366

Browse filesBrowse files
committed
Merge pull request #6947 from dlmccaffrey/errorbar-error-msg
MNT: Changed error message Closes #6933
1 parent 48dedc4 commit 6937366
Copy full SHA for 6937366

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
@@ -2954,8 +2954,8 @@ def extract_err(err, data):
29542954
fe = safe_first_element(err)
29552955
if not ((len(err) == len(data) and not (iterable(fe) and
29562956
len(fe) > 1))):
2957-
raise ValueError("err must be a scalar, the same "
2958-
"dimensions as x, or 2xN.")
2957+
raise ValueError("err must be [ scalar | N, Nx1 "
2958+
"or 2xN array-like ]")
29592959
# using list comps rather than arrays to preserve units
29602960
low = [thisx - thiserr for (thisx, thiserr)
29612961
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.