From b06b696774285c8e4550a1cc541a9de1388e7e7c Mon Sep 17 00:00:00 2001 From: zssherman Date: Mon, 20 Nov 2023 09:53:31 -0600 Subject: [PATCH] MNT: Remove stamen for v2.0. --- act/plotting/geodisplay.py | 12 ++---------- act/tests/test_plotting.py | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/act/plotting/geodisplay.py b/act/plotting/geodisplay.py index f26379df39..b01d425b43 100644 --- a/act/plotting/geodisplay.py +++ b/act/plotting/geodisplay.py @@ -61,7 +61,6 @@ def geoplot( img_tile=None, img_tile_args={}, tile=8, - stamen='terrain-background', cartopy_feature=None, cmap='rainbow', text=None, @@ -210,16 +209,9 @@ def geoplot( else: plt.title(title) - if stamen and img_tile is None: - tiler = img_tiles.Stamen(stamen) + if img_tile is not None: + tiler = getattr(img_tiles, img_tile)(**img_tile_args) ax.add_image(tiler, tile) - warnings.warn( - "Stamen is deprecated in Cartopy and in future versions of ACT, " - "please use img_tile to specify the image background. ") - else: - if img_tile is not None: - tiler = getattr(img_tiles, img_tile)(**img_tile_args) - ax.add_image(tiler, tile) colorbar_map = None if cmap is not None: diff --git a/act/tests/test_plotting.py b/act/tests/test_plotting.py index b549594137..6c6d0010ca 100644 --- a/act/tests/test_plotting.py +++ b/act/tests/test_plotting.py @@ -430,7 +430,6 @@ def test_geoplot(): ], text={'Ponca City': [-97.0725, 36.7125]}, img_tile=None, - stamen=None, ) try: return geodisplay.fig