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

Method test_latex

lib/matplotlib/tests/test_ticker.py:1762–1765  ·  view source on GitHub ↗
(self, is_latex, usetex, expected)

Source from the content-addressed store, hash-verified

1760
1761 @pytest.mark.parametrize('is_latex, usetex, expected', latex_data)
1762 def test_latex(self, is_latex, usetex, expected):
1763 fmt = mticker.PercentFormatter(symbol='\\{t}%', is_latex=is_latex)
1764 with mpl.rc_context(rc={'text.usetex': usetex}):
1765 assert fmt.format_pct(50, 100) == expected
1766
1767
1768def _impl_locale_comma():

Callers

nothing calls this directly

Calls 1

format_pctMethod · 0.95

Tested by

no test coverage detected