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

Function test_stairs_invalid_update2

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

Source from the content-addressed store, hash-verified

2783
2784
2785def test_stairs_invalid_update2():
2786 h = plt.stairs([1, 2], [0, 1, 2])
2787 with pytest.raises(ValueError, match='Size mismatch'):
2788 h.set_data(edges=np.arange(5))
2789
2790
2791@image_comparison(['test_stairs_options.png'], style='mpl20', remove_text=True)

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…