Skip to content

Commit b853a3f

Browse files
authored
Deprecate basemap (#243)
* Deprecate basemap. Basemap will be deprecated in the next major release (v2.0). See #243 for context.
1 parent 5f46ec5 commit b853a3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ultraplot/figure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,10 @@ def _parse_backend(backend=None, basemap=None):
824824
Handle deprecation of basemap and cartopy package.
825825
"""
826826
# Basemap is currently being developed again so are removing the deprecation warning
827+
if backend == "basemap":
828+
warnings._warn_ultraplot(
829+
f"{backend=} will be deprecated in next major release (v2.0). See https://github.com/Ultraplot/ultraplot/pull/243"
830+
)
827831
return backend
828832

829833
def _parse_proj(

0 commit comments

Comments
 (0)