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

Function test_date_formatter_usetex

lib/matplotlib/tests/test_dates.py:353–364  ·  view source on GitHub ↗
(delta, expected)

Source from the content-addressed store, hash-verified

351 [r'$\mathdefault{01\;00{:}%02d}$' % minu for minu in range(0, 11)]),
352])
353def test_date_formatter_usetex(delta, expected):
354 style.use("default")
355
356 d1 = datetime.datetime(1990, 1, 1)
357 d2 = d1 + delta
358
359 locator = mdates.AutoDateLocator(interval_multiples=False)
360 locator.create_dummy_axis()
361 locator.axis.set_view_interval(mdates.date2num(d1), mdates.date2num(d2))
362
363 formatter = mdates.AutoDateFormatter(locator, usetex=True)
364 assert [formatter(loc) for loc in locator()] == expected
365
366
367def test_drange():

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…