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

Function test_concise_formatter_usetex

lib/matplotlib/tests/test_dates.py:726–735  ·  view source on GitHub ↗
(t_delta, expected)

Source from the content-addressed store, hash-verified

724 '$\\mathdefault{02.5}$']),
725])
726def test_concise_formatter_usetex(t_delta, expected):
727 d1 = datetime.datetime(1997, 1, 1)
728 d2 = d1 + t_delta
729
730 locator = mdates.AutoDateLocator(interval_multiples=True)
731 locator.create_dummy_axis()
732 locator.axis.set_view_interval(mdates.date2num(d1), mdates.date2num(d2))
733
734 formatter = mdates.ConciseDateFormatter(locator, usetex=True)
735 assert formatter.format_ticks(locator()) == expected
736
737
738def test_concise_formatter_formats():

Callers

nothing calls this directly

Calls 3

format_ticksMethod · 0.95
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…