Skip to content

Commit 9d257f1

Browse files
committed
Fix basemap deprecation warning
1 parent 8cf24d1 commit 9d257f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

proplot/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def _parse_proj(
776776
# Parse arguments
777777
proj = _not_none(proj=proj, projection=projection, default='cartesian')
778778
proj_kw = _not_none(proj_kw=proj_kw, projection_kw=projection_kw, default={})
779-
backend = self._parse_backend(basemap, backend)
779+
backend = self._parse_backend(backend, basemap)
780780
if isinstance(proj, str):
781781
proj = proj.lower()
782782
if isinstance(self, paxes.Axes):
@@ -1134,7 +1134,7 @@ def _axes_dict(naxs, input, kw=False, default=None):
11341134
proj = _axes_dict(naxs, proj, kw=False, default='cartesian')
11351135
proj_kw = _not_none(projection_kw=projection_kw, proj_kw=proj_kw) or {}
11361136
proj_kw = _axes_dict(naxs, proj_kw, kw=True)
1137-
backend = self._parse_backend(basemap, backend)
1137+
backend = self._parse_backend(backend, basemap)
11381138
backend = _axes_dict(naxs, backend, kw=False)
11391139
axes_kw = {
11401140
num: {'proj': proj[num], 'proj_kw': proj_kw[num], 'backend': backend[num]}

proplot/internals/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def _not_none(*args, default=None, **kwargs):
5757
warnings
5858
)
5959
from .versions import _version_mpl, _version_cartopy # noqa: F401
60+
from .warnings import ProplotWarning # noqa: F401
6061

6162

6263
# Style aliases. We use this rather than matplotlib's normalize_kwargs and _alias_maps.

0 commit comments

Comments
 (0)