@@ -198,10 +198,10 @@ class TestLogLocator:
198
198
'vmin, vmax, expected_ticks' ,
199
199
(
200
200
[1 , 10 , [1 , 10 ]],
201
- [0.9 , 10.1 , [1 , 10 ]],
202
- [0.9 , 9 , [1 ]],
203
- [1.1 , 11 , [10 ]],
204
- [0.5 , 983 , [1 , 10 , 100 ]]
201
+ [0.9 , 10.1 , [0. 1 , 1 , 10 , 100 ]],
202
+ [0.9 , 9 , [0.1 , 1 , 10 ]],
203
+ [1.1 , 11 , [1 , 10 , 100 ]],
204
+ [0.5 , 983 , [0. 1 , 1 , 10 , 100 , 1000 ]]
205
205
)
206
206
)
207
207
def test_tick_locs (self , vmin , vmax , expected_ticks ):
@@ -210,13 +210,13 @@ def test_tick_locs(self, vmin, vmax, expected_ticks):
210
210
211
211
def test_basic (self ):
212
212
loc = mticker .LogLocator (numticks = 5 )
213
- test_value = np .array ([1.00000000e-05 , 1.00000000e- 03 , 1.00000000e-01 ,
213
+ test_value = np .array ([1.00000000e-03 , 1.00000000e-01 ,
214
214
1.00000000e+01 , 1.00000000e+03 , 1.00000000e+05 ,
215
- 1.00000000e+07 , 1.000000000e+09 ])
216
- assert_almost_equal (loc .tick_values (0.001 , 1.1e5 ), test_value )
215
+ 1.00000000e+07 ])
216
+ assert_almost_equal (loc .tick_values (1e-3 , 1.1e5 ), test_value )
217
217
218
218
loc = mticker .LogLocator (base = 2 )
219
- test_value = np .array ([0.5 , 1. , 2. , 4. , 8. , 16. , 32. , 64. , 128. , 256 . ])
219
+ test_value = np .array ([1. , 2. , 4. , 8. , 16. , 32. , 64. , 128. ])
220
220
assert_almost_equal (loc .tick_values (1 , 100 ), test_value )
221
221
222
222
def test_invalid_lim_error (self ):
0 commit comments