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

Method test_basic

lib/matplotlib/tests/test_ticker.py:95–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93
94class TestMultipleLocator:
95 def test_basic(self):
96 loc = mticker.MultipleLocator(base=3.147)
97 test_value = np.array([-9.441, -6.294, -3.147, 0., 3.147, 6.294,
98 9.441, 12.588])
99 assert_almost_equal(loc.tick_values(-7, 10), test_value)
100
101 def test_basic_with_offset(self):
102 loc = mticker.MultipleLocator(base=3.147, offset=1.2)

Callers

nothing calls this directly

Calls 1

tick_valuesMethod · 0.95

Tested by

no test coverage detected