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

Function _create_year_locator

lib/matplotlib/tests/test_dates.py:1147–1152  ·  view source on GitHub ↗
(date1, date2, **kwargs)

Source from the content-addressed store, hash-verified

1145
1146def test_YearLocator():
1147 def _create_year_locator(date1, date2, **kwargs):
1148 locator = mdates.YearLocator(**kwargs)
1149 locator.create_dummy_axis()
1150 locator.axis.set_view_interval(mdates.date2num(date1),
1151 mdates.date2num(date2))
1152 return locator
1153
1154 d1 = datetime.datetime(1990, 1, 1)
1155 results = ([datetime.timedelta(weeks=52 * 200),

Callers 1

test_YearLocatorFunction · 0.85

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…