MCPcopy
hub / github.com/matplotlib/matplotlib / test_date_axhspan

Function test_date_axhspan

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

Source from the content-addressed store, hash-verified

142
143@image_comparison(['date_axhspan.png'], style='mpl20')
144def test_date_axhspan():
145 # test axhspan with date inputs
146 t0 = datetime.datetime(2009, 1, 20)
147 tf = datetime.datetime(2009, 1, 21)
148 fig, ax = plt.subplots()
149 ax.axhspan(t0, tf, facecolor="blue", alpha=0.25)
150 ax.set_ylim(t0 - datetime.timedelta(days=5),
151 tf + datetime.timedelta(days=5))
152 fig.subplots_adjust(left=0.25)
153
154
155@image_comparison(['date_axvspan.png'], style='mpl20')

Callers

nothing calls this directly

Calls 4

axhspanMethod · 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…