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

Method test_integer

lib/matplotlib/tests/test_ticker.py:38–40  ·  view source on GitHub ↗
(self, vmin, vmax, steps, expected)

Source from the content-addressed store, hash-verified

36
37 @pytest.mark.parametrize('vmin, vmax, steps, expected', integer_data)
38 def test_integer(self, vmin, vmax, steps, expected):
39 loc = mticker.MaxNLocator(nbins=5, integer=True, steps=steps)
40 assert_almost_equal(loc.tick_values(vmin, vmax), expected)
41
42 @pytest.mark.parametrize('kwargs, errortype, match', [
43 ({'foo': 0}, TypeError,

Callers

nothing calls this directly

Calls 1

tick_valuesMethod · 0.95

Tested by

no test coverage detected