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

Method test_basic

lib/matplotlib/tests/test_ticker.py:1755–1759  ·  view source on GitHub ↗
(self, xmax, decimals, symbol,
                   x, display_range, expected)

Source from the content-addressed store, hash-verified

1753 'xmax, decimals, symbol, x, display_range, expected',
1754 percent_data, ids=percent_ids)
1755 def test_basic(self, xmax, decimals, symbol,
1756 x, display_range, expected):
1757 formatter = mticker.PercentFormatter(xmax, decimals, symbol)
1758 with mpl.rc_context(rc={'text.usetex': False}):
1759 assert formatter.format_pct(x, display_range) == expected
1760
1761 @pytest.mark.parametrize('is_latex, usetex, expected', latex_data)
1762 def test_latex(self, is_latex, usetex, expected):

Callers

nothing calls this directly

Calls 1

format_pctMethod · 0.95

Tested by

no test coverage detected