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

Method test_basic

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

Source from the content-addressed store, hash-verified

63
64class TestLinearLocator:
65 def test_basic(self):
66 loc = mticker.LinearLocator(numticks=3)
67 test_value = np.array([-0.8, -0.3, 0.2])
68 assert_almost_equal(loc.tick_values(-0.8, 0.2), test_value)
69
70 def test_zero_numticks(self):
71 loc = mticker.LinearLocator(numticks=0)

Callers

nothing calls this directly

Calls 1

tick_valuesMethod · 0.95

Tested by

no test coverage detected