Skip to content

Commit

Permalink
MNT: Remove stamen for v2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Nov 20, 2023
1 parent 402389d commit b06b696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions act/plotting/geodisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def geoplot(
img_tile=None,
img_tile_args={},
tile=8,
stamen='terrain-background',
cartopy_feature=None,
cmap='rainbow',
text=None,
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion act/tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ def test_geoplot():
],
text={'Ponca City': [-97.0725, 36.7125]},
img_tile=None,
stamen=None,
)
try:
return geodisplay.fig
Expand Down

0 comments on commit b06b696

Please sign in to comment.