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

Function test_vline_limit

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

Source from the content-addressed store, hash-verified

6371
6372
6373def test_vline_limit():
6374 fig = plt.figure()
6375 ax = fig.gca()
6376 ax.axvline(0.5)
6377 ax.plot([-0.1, 0, 0.2, 0.1])
6378 assert_allclose(ax.get_ylim(), (-.1, .2))
6379
6380
6381@pytest.mark.parametrize('fv, fh, args', [[plt.axvline, plt.axhline, (1,)],

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
gcaMethod · 0.80
axvlineMethod · 0.80
plotMethod · 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…