@@ -241,7 +241,7 @@ def test_add_basemap():
241241 fig , ax = matplotlib .pyplot .subplots (1 )
242242 ax .set_xlim (x1 , x2 )
243243 ax .set_ylim (y1 , y2 )
244- ax = ctx .add_basemap (ax , zoom = 10 )
244+ ctx .add_basemap (ax , zoom = 10 )
245245
246246 # ensure add_basemap did not change the axis limits of ax
247247 ax_extent = (x1 , x2 , y1 , y2 )
@@ -256,7 +256,7 @@ def test_add_basemap():
256256 ax .set_xlim (x1 , x2 )
257257 ax .set_ylim (y1 , y2 )
258258 loc = ctx .Place (SEARCH , path = "./test2.tif" , zoom_adjust = ADJUST )
259- ax = ctx .add_basemap (ax , url = "./test2.tif" )
259+ ctx .add_basemap (ax , url = "./test2.tif" )
260260
261261 raster_extent = (
262262 - 11740803.981631357 ,
@@ -273,7 +273,7 @@ def test_add_basemap():
273273 f , ax = matplotlib .pyplot .subplots (1 )
274274 ax .set_xlim (x1 , x2 )
275275 ax .set_ylim (y1 , y2 )
276- ax = ctx .add_basemap (ax , zoom = "auto" )
276+ ctx .add_basemap (ax , zoom = "auto" )
277277
278278 ax_extent = (
279279 - 11740727.544603072 ,
@@ -292,7 +292,7 @@ def test_add_basemap():
292292 f , ax = matplotlib .pyplot .subplots (1 )
293293 ax .set_xlim (x1 , x2 )
294294 ax .set_ylim (y1 , y2 )
295- ax = ctx .add_basemap (ax , crs = {"init" : "epsg:4326" }, attribution = None )
295+ ctx .add_basemap (ax , crs = {"init" : "epsg:4326" }, attribution = None )
296296 assert ax .get_xlim () == (x1 , x2 )
297297 assert ax .get_ylim () == (y1 , y2 )
298298 assert ax .images [0 ].get_array ().sum () == 724238693
@@ -303,9 +303,7 @@ def test_add_basemap():
303303 f , ax = matplotlib .pyplot .subplots (1 )
304304 ax .set_xlim (x1 , x2 )
305305 ax .set_ylim (y1 , y2 )
306- ax = ctx .add_basemap (
307- ax , url = "./test2.tif" , crs = {"init" : "epsg:4326" }, attribution = None
308- )
306+ ctx .add_basemap (ax , url = "./test2.tif" , crs = {"init" : "epsg:4326" }, attribution = None )
309307 assert ax .get_xlim () == (x1 , x2 )
310308 assert ax .get_ylim () == (y1 , y2 )
311309 assert ax .images [0 ].get_array ().sum () == 724238693
0 commit comments