Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8eac2c

Browse files
dlmccaffreystory645
authored andcommitted
Changed error message.
1 parent 79e7b75 commit a8eac2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)