File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -311,19 +311,19 @@ def test_colorbar_minorticks_on_off():
311
311
data = np .random .uniform (low = 1 , high = 10 , size = (20 , 20 ))
312
312
313
313
fig , ax = plt .subplots ()
314
- im = ax .pcolormesh (data , norm = mpl . colors . LogNorm ())
314
+ im = ax .pcolormesh (data , norm = LogNorm ())
315
315
cbar = fig .colorbar (im )
316
316
default_minorticklocks = cbar .ax .yaxis .get_minorticklocs ()
317
317
318
318
# test that minorticks turn off for LogNorm
319
319
cbar .minorticks_off ()
320
- np .testing . assert_almost_equal (cbar .ax .yaxis .get_minorticklocs (),
321
- np .array ([]))
320
+ assert np .array_equal (cbar .ax .yaxis .get_minorticklocs (),
321
+ np .array ([]))
322
322
323
323
# test that minorticks turn back on for LogNorm
324
324
cbar .minorticks_on ()
325
- np .testing . assert_almost_equal (cbar .ax .yaxis .get_minorticklocs (),
326
- default_minorticklocks )
325
+ assert np .array_equal (cbar .ax .yaxis .get_minorticklocs (),
326
+ default_minorticklocks )
327
327
328
328
329
329
def test_colorbar_autoticks ():
You can’t perform that action at this time.
0 commit comments