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

Method test_near_zero

lib/matplotlib/tests/test_ticker.py:726–730  ·  view source on GitHub ↗

Check that manually injected zero will supersede nearby tick

(self)

Source from the content-addressed store, hash-verified

724 0, 0.4, 3, 20, 100, 1000])
725
726 def test_near_zero(self):
727 """Check that manually injected zero will supersede nearby tick"""
728 lctr = mticker.AsinhLocator(linear_width=100, numticks=3, base=0)
729
730 assert_almost_equal(lctr.tick_values(-1.1, 0.9), [-1.0, 0.0, 0.9])
731
732 def test_fallback(self):
733 lctr = mticker.AsinhLocator(1.0, numticks=11)

Callers

nothing calls this directly

Calls 1

tick_valuesMethod · 0.95

Tested by

no test coverage detected