()
| 6371 | |
| 6372 | |
| 6373 | def 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,)], |