Skip to content

Commit 3f881ed

Browse files
authored
Merge pull request #22854 from greglucas/tst-asinh
TST: Avoid floating point errors in asinh ticker
2 parents 9cf03c0 + 967d0e4 commit 3f881ed

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)