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

Function test_date_not_empty

lib/matplotlib/tests/test_dates.py:114–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113
114def test_date_not_empty():
115 fig = plt.figure()
116 ax = fig.add_subplot()
117
118 ax.plot([50, 70], [1, 2])
119 ax.xaxis.axis_date()
120 np.testing.assert_allclose(ax.get_xlim(), [50, 70])
121
122
123def test_axhline():

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
add_subplotMethod · 0.80
axis_dateMethod · 0.80
plotMethod · 0.45
get_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…