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

Function test_date_axhline

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

Source from the content-addressed store, hash-verified

166
167@image_comparison(['date_axhline.png'], style='mpl20')
168def test_date_axhline():
169 # test axhline with date inputs
170 t0 = datetime.datetime(2009, 1, 20)
171 tf = datetime.datetime(2009, 1, 31)
172 fig, ax = plt.subplots()
173 ax.axhline(t0, color="blue", lw=3)
174 ax.set_ylim(t0 - datetime.timedelta(days=5),
175 tf + datetime.timedelta(days=5))
176 fig.subplots_adjust(left=0.25)
177
178
179@image_comparison(['date_axvline.png'], style='mpl20')

Callers

nothing calls this directly

Calls 4

axhlineMethod · 0.80
subplots_adjustMethod · 0.80
subplotsMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…