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

Function test_warn_notintervals

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

Source from the content-addressed store, hash-verified

1250
1251
1252def test_warn_notintervals():
1253 dates = np.arange('2001-01-10', '2001-03-04', dtype='datetime64[D]')
1254 locator = mdates.AutoDateLocator(interval_multiples=False)
1255 locator.intervald[3] = [2]
1256 locator.create_dummy_axis()
1257 locator.axis.set_view_interval(mdates.date2num(dates[0]),
1258 mdates.date2num(dates[-1]))
1259 with pytest.warns(UserWarning, match="AutoDateLocator was unable"):
1260 locs = locator()
1261
1262
1263def test_change_converter():

Callers

nothing calls this directly

Calls 2

create_dummy_axisMethod · 0.80
set_view_intervalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…