Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 967d0e4

Browse files
committed
TST: Avoid floating point errors in asinh ticker
This avoids the floating point issues with tests in the asinh tick locator by moving away from the 100 log10 cliff. This was failing with the new AVX instruction updates in numpy.
1 parent 9cf03c0 commit 967d0e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ def test_near_zero(self):
510510
def test_fallback(self):
511511
lctr = mticker.AsinhLocator(1.0, numticks=11)
512512

513-
assert_almost_equal(lctr.tick_values(100, 101),
514-
np.arange(100, 101.01, 0.1))
513+
assert_almost_equal(lctr.tick_values(101, 102),
514+
np.arange(101, 102.01, 0.1))
515515

516516
def test_symmetrizing(self):
517517
class DummyAxis:

0 commit comments

Comments
 (0)