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

Method test_basic

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

Source from the content-addressed store, hash-verified

328
329class TestLogLocator:
330 def test_basic(self):
331 loc = mticker.LogLocator(numticks=5)
332 with pytest.raises(ValueError):
333 loc.tick_values(0, 1000)
334
335 test_value = np.array([1e-5, 1e-3, 1e-1, 1e+1, 1e+3, 1e+5, 1e+7])
336 assert_almost_equal(loc.tick_values(0.001, 1.1e5), test_value)
337
338 loc = mticker.LogLocator(base=2)
339 test_value = np.array([.5, 1., 2., 4., 8., 16., 32., 64., 128.])
340 assert_almost_equal(loc.tick_values(1, 100), test_value)
341
342 def test_polar_axes(self):
343 """

Callers

nothing calls this directly

Calls 1

tick_valuesMethod · 0.95

Tested by

no test coverage detected