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

Function _create_auto_date_locator

lib/matplotlib/tests/test_dates.py:401–405  ·  view source on GitHub ↗
(date1, date2)

Source from the content-addressed store, hash-verified

399@_new_epoch_decorator
400def test_auto_date_locator():
401 def _create_auto_date_locator(date1, date2):
402 locator = mdates.AutoDateLocator(interval_multiples=False)
403 locator.create_dummy_axis()
404 locator.axis.set_view_interval(*mdates.date2num([date1, date2]))
405 return locator
406
407 d1 = datetime.datetime(1990, 1, 1)
408 results = ([datetime.timedelta(weeks=52 * 200),

Calls 9

create_dummy_axisMethod · 0.80
get_offset_textMethod · 0.80
set_view_intervalMethod · 0.45
subplotsMethod · 0.45
set_major_locatorMethod · 0.45
set_major_formatterMethod · 0.45
set_ylimMethod · 0.45
drawMethod · 0.45
get_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…