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

Function test_stairs_empty

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

Source from the content-addressed store, hash-verified

2760
2761
2762def test_stairs_empty():
2763 ax = plt.figure().add_subplot()
2764 ax.stairs([], [42])
2765 assert ax.get_xlim() == (39, 45)
2766 assert ax.get_ylim() == (-0.06, 0.06)
2767
2768
2769def test_stairs_invalid_nan():

Callers

nothing calls this directly

Calls 5

add_subplotMethod · 0.80
figureMethod · 0.80
stairsMethod · 0.80
get_xlimMethod · 0.45
get_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…