Skip to content

Commit c650812

Browse files
committed
allign wording in description and error
1 parent f619877 commit c650812

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3294,7 +3294,7 @@ def has_negative_values(array):
32943294

32953295
if has_negative_values(xerr) or has_negative_values(yerr):
32963296
raise ValueError(
3297-
"'xerr' and 'yerr' must have non-negative numbers")
3297+
"'xerr' and 'yerr' must have non-negative values")
32983298

32993299
if isinstance(errorevery, Integral):
33003300
errorevery = (0, errorevery)

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,7 @@ def test_errorbar_every_invalid():
35163516
def test_xerr_yerr_positive():
35173517
ax = plt.figure().subplots()
35183518

3519-
error_message = "'xerr' and 'yerr' must have non-negative numbers"
3519+
error_message = "'xerr' and 'yerr' must have non-negative values"
35203520

35213521
with pytest.raises(ValueError, match=error_message):
35223522
ax.errorbar(x=[0], y=[0], xerr=[[-0.5], [1]], yerr=[[-0.5], [1]])

0 commit comments

Comments
 (0)