🌐 AI搜索 & 代理 主页
Skip to content

Commit 1679a7f

Browse files
committed
test_ticker: add a parameter set for np.inf in LogFormatterMathtext
1 parent 9d1dae0 commit 1679a7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_ticker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ class TestLogFormatterMathtext:
10061006
(3, 1e2, '$\\mathdefault{100}$'),
10071007
(3, 1e-3, '$\\mathdefault{10^{-3}}$'),
10081008
(3, 1e3, '$\\mathdefault{10^{3}}$'),
1009+
(2, np.inf, ''),
10091010
]
10101011

10111012
@pytest.mark.parametrize('min_exponent, value, expected', test_data)

0 commit comments

Comments
 (0)