@@ -29,16 +29,14 @@ def test_yticklabels_robinson(pass_ax):
2929 assert ax .texts [- 1 ].get_text () == "70°N"
3030
3131
32- @pytest .mark .parametrize ("pass_ax" , (True , False ))
33- def test_yticklabels_robinson_180 (pass_ax ):
32+ def test_yticklabels_robinson_180 ():
3433 proj = ccrs .Robinson (central_longitude = 180 )
3534 with subplots_context (subplot_kw = dict (projection = proj )) as (f , ax ):
3635 ax .set_global ()
3736
3837 lat = np .arange (- 90 , 91 , 20 )
3938
40- ax_ = ax if pass_ax else None
41- mpu .yticklabels (lat , ax = ax_ , size = 8 )
39+ mpu .yticklabels (lat , ax = ax , size = 8 )
4240
4341 x_pos = 0.0
4442
@@ -52,13 +50,14 @@ def test_yticklabels_robinson_180(pass_ax):
5250 assert ax .texts [- 1 ].get_text () == "70°N"
5351
5452
55- def test_xticklabels_robinson ():
53+ @pytest .mark .parametrize ("pass_ax" , (True , False ))
54+ def test_xticklabels_robinson (pass_ax ):
5655 with subplots_context (subplot_kw = dict (projection = ccrs .Robinson ())) as (f , ax ):
5756 ax .set_global ()
5857
5958 lon = np .arange (- 180 , 181 , 60 )
60-
61- mpu .xticklabels (lon , ax = ax , size = 8 )
59+ ax_ = ax if pass_ax else None
60+ mpu .xticklabels (lon , ax = ax_ , size = 8 )
6261
6362 y_pos = - 89.99
6463
0 commit comments