@@ -616,8 +616,8 @@ def standardize_1d(self, func, *args, autoformat=None, **kwargs):
616
616
ys = [_to_ndarray (yi ) for yi in ys ] # store naked array
617
617
kwargs ['positions' ] = x
618
618
619
- # Basemap shift x coordiantes without shifting y, we fix this!
620
- if getattr (self , 'name' , '' ) == 'basemap ' and kwargs .get ('latlon' , None ):
619
+ # Basemap shift x coordinates without shifting y, we fix this!
620
+ if getattr (self , 'name' , '' ) == 'proplot_basemap ' and kwargs .get ('latlon' , None ):
621
621
ix , iys = x , []
622
622
xmin , xmax = self .projection .lonmin , self .projection .lonmax
623
623
for y in ys :
@@ -936,7 +936,7 @@ def standardize_2d(
936
936
937
937
# Cartopy projection axes
938
938
if (
939
- getattr (self , 'name' , '' ) == 'cartopy '
939
+ getattr (self , 'name' , '' ) == 'proplot_cartopy '
940
940
and isinstance (kwargs .get ('transform' , None ), PlateCarree )
941
941
):
942
942
x , y = _fix_latlon (x , y )
@@ -955,7 +955,7 @@ def standardize_2d(
955
955
x , Zs = ix , iZs
956
956
957
957
# Basemap projection axes
958
- elif getattr (self , 'name' , '' ) == 'basemap ' and kwargs .get ('latlon' , None ):
958
+ elif getattr (self , 'name' , '' ) == 'proplot_basemap ' and kwargs .get ('latlon' , None ):
959
959
# Fix grid
960
960
xmin , xmax = self .projection .lonmin , self .projection .lonmax
961
961
x , y = _fix_latlon (x , y )
@@ -2151,7 +2151,7 @@ def _get_transform(self, transform):
2151
2151
from cartopy .crs import CRS
2152
2152
except ModuleNotFoundError :
2153
2153
CRS = None
2154
- cartopy = getattr (self , 'name' , '' ) == 'cartopy '
2154
+ cartopy = getattr (self , 'name' , '' ) == 'proplot_cartopy '
2155
2155
if (
2156
2156
isinstance (transform , mtransforms .Transform )
2157
2157
or CRS and isinstance (transform , CRS )
@@ -4173,7 +4173,7 @@ def _basemap_redirect(func):
4173
4173
4174
4174
@functools .wraps (func )
4175
4175
def wrapper (self , * args , ** kwargs ):
4176
- if getattr (self , 'name' , '' ) == 'basemap ' :
4176
+ if getattr (self , 'name' , '' ) == 'proplot_basemap ' :
4177
4177
return getattr (self .projection , name )(* args , ax = self , ** kwargs )
4178
4178
else :
4179
4179
return func (self , * args , ** kwargs )
0 commit comments