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

Function test_date_inverted_limit

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

Source from the content-addressed store, hash-verified

955
956@image_comparison(['date_inverted_limit.png'], style='mpl20')
957def test_date_inverted_limit():
958 # test ax hline with date inputs
959 t0 = datetime.datetime(2009, 1, 20)
960 tf = datetime.datetime(2009, 1, 31)
961 fig, ax = plt.subplots()
962 ax.axhline(t0, color="blue", lw=3)
963 ax.set_ylim(t0 - datetime.timedelta(days=5),
964 tf + datetime.timedelta(days=5))
965 ax.invert_yaxis()
966 fig.subplots_adjust(left=0.25)
967
968
969def _test_date2num_dst(date_range, tz_convert):

Callers

nothing calls this directly

Calls 5

axhlineMethod · 0.80
invert_yaxisMethod · 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…