MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_stairs_invalid_update

Function test_stairs_invalid_update

lib/matplotlib/tests/test_axes.py:2779–2782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2777
2778
2779def test_stairs_invalid_update():
2780 h = plt.stairs([1, 2], [0, 1, 2])
2781 with pytest.raises(ValueError, match='Nan values in "edges"'):
2782 h.set_data(edges=[1, np.nan, 2])
2783
2784
2785def test_stairs_invalid_update2():

Callers

nothing calls this directly

Calls 2

stairsMethod · 0.80
set_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…