Skip to content

Commit 6b2d985

Browse files
author
Maxime Lucas
committed
Test that no error is thrown when calling errorbar with all nan errors
1 parent e88e467 commit 6b2d985

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎lib/matplotlib/tests/test_axes.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,6 +3981,11 @@ def test_errorbar_nan(fig_test, fig_ref):
39813981
ax.errorbar([4], [3], [6], fmt="C0")
39823982

39833983

3984+
def test_errorbar_allnan_error():
3985+
fig, ax = plt.subplots()
3986+
ax.errorbar([0], [0], [np.nan])
3987+
3988+
39843989
@image_comparison(['hist_stacked_stepfilled', 'hist_stacked_stepfilled'])
39853990
def test_hist_stacked_stepfilled():
39863991
# make some data

0 commit comments

Comments
 (0)