@@ -241,7 +241,7 @@ def test_add_basemap():
241
241
fig , ax = matplotlib .pyplot .subplots (1 )
242
242
ax .set_xlim (x1 , x2 )
243
243
ax .set_ylim (y1 , y2 )
244
- ax = ctx .add_basemap (ax , zoom = 10 )
244
+ ctx .add_basemap (ax , zoom = 10 )
245
245
246
246
# ensure add_basemap did not change the axis limits of ax
247
247
ax_extent = (x1 , x2 , y1 , y2 )
@@ -256,7 +256,7 @@ def test_add_basemap():
256
256
ax .set_xlim (x1 , x2 )
257
257
ax .set_ylim (y1 , y2 )
258
258
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" )
260
260
261
261
raster_extent = (
262
262
- 11740803.981631357 ,
@@ -273,7 +273,7 @@ def test_add_basemap():
273
273
f , ax = matplotlib .pyplot .subplots (1 )
274
274
ax .set_xlim (x1 , x2 )
275
275
ax .set_ylim (y1 , y2 )
276
- ax = ctx .add_basemap (ax , zoom = "auto" )
276
+ ctx .add_basemap (ax , zoom = "auto" )
277
277
278
278
ax_extent = (
279
279
- 11740727.544603072 ,
@@ -292,7 +292,7 @@ def test_add_basemap():
292
292
f , ax = matplotlib .pyplot .subplots (1 )
293
293
ax .set_xlim (x1 , x2 )
294
294
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 )
296
296
assert ax .get_xlim () == (x1 , x2 )
297
297
assert ax .get_ylim () == (y1 , y2 )
298
298
assert ax .images [0 ].get_array ().sum () == 724238693
@@ -303,9 +303,7 @@ def test_add_basemap():
303
303
f , ax = matplotlib .pyplot .subplots (1 )
304
304
ax .set_xlim (x1 , x2 )
305
305
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 )
309
307
assert ax .get_xlim () == (x1 , x2 )
310
308
assert ax .get_ylim () == (y1 , y2 )
311
309
assert ax .images [0 ].get_array ().sum () == 724238693
0 commit comments