Skip to content

Commit 077e1ab

Browse files
committed
Default cartopy transform bugfix
1 parent ad235aa commit 077e1ab

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

proplot/axes.py

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,54 +3175,52 @@ def projection(self, map_projection):
31753175
text = _text_wrapper(
31763176
GeoAxes.text
31773177
)
3178-
plot = _plot_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3179-
_default_transform(GeoAxes.plot)
3180-
))))
3181-
scatter = _scatter_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3182-
_default_transform(GeoAxes.scatter)
3183-
))))
3178+
# Wrapped by standardize method
3179+
plot = _default_transform(_plot_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3180+
GeoAxes.plot
3181+
)))))
3182+
scatter = _default_transform(_scatter_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3183+
GeoAxes.scatter
3184+
)))))
31843185
fill_between = _fill_between_wrapper(_standardize_1d(_cycle_changer(
31853186
GeoAxes.fill_between
31863187
)))
31873188
fill_betweenx = _fill_betweenx_wrapper(_standardize_1d(_cycle_changer(
31883189
GeoAxes.fill_betweenx
31893190
)))
3191+
contour = _default_transform(_standardize_2d(_cmap_changer(
3192+
GeoAxes.contour
3193+
)))
3194+
contourf = _default_transform(_standardize_2d(_cmap_changer(
3195+
GeoAxes.contourf
3196+
)))
3197+
pcolor = _default_transform(_standardize_2d(_cmap_changer(
3198+
GeoAxes.pcolor
3199+
)))
3200+
pcolormesh = _default_transform(_standardize_2d(_cmap_changer(
3201+
GeoAxes.pcolormesh
3202+
)))
3203+
quiver = _default_transform(_standardize_2d(_cmap_changer(
3204+
GeoAxes.quiver
3205+
)))
3206+
streamplot = _default_transform(_standardize_2d(_cmap_changer(
3207+
GeoAxes.streamplot
3208+
)))
3209+
barbs = _default_transform(_standardize_2d(_cmap_changer(
3210+
GeoAxes.barbs
3211+
)))
31903212

3191-
# Wrapped by cmap wrapper and standardized
3192-
# Also support redirecting to Basemap methods
3193-
contour = _standardize_2d(_cmap_changer(
3194-
_default_transform(GeoAxes.contour)
3195-
))
3196-
contourf = _standardize_2d(_cmap_changer(
3197-
_default_transform(GeoAxes.contourf)
3198-
))
3199-
pcolor = _standardize_2d(_cmap_changer(
3200-
_default_transform(GeoAxes.pcolor)
3201-
))
3202-
pcolormesh = _standardize_2d(_cmap_changer(
3203-
_default_transform(GeoAxes.pcolormesh)
3204-
))
3205-
quiver = _standardize_2d(_cmap_changer(
3206-
_default_transform(GeoAxes.quiver)
3213+
# Wrapped only by cmap wrapper
3214+
tripcolor = _default_transform(_cmap_changer(
3215+
GeoAxes.tripcolor
32073216
))
3208-
streamplot = _standardize_2d(_cmap_changer(
3209-
_default_transform(GeoAxes.streamplot)
3217+
tricontour = _default_transform(_cmap_changer(
3218+
GeoAxes.tricontour
32103219
))
3211-
barbs = _standardize_2d(_cmap_changer(
3212-
_default_transform(GeoAxes.barbs)
3220+
tricontourf = _default_transform(_cmap_changer(
3221+
GeoAxes.tricontourf
32133222
))
32143223

3215-
# Wrapped only by cmap wrapper
3216-
tripcolor = _cmap_changer(
3217-
_default_transform(GeoAxes.tripcolor)
3218-
)
3219-
tricontour = _cmap_changer(
3220-
_default_transform(GeoAxes.tricontour)
3221-
)
3222-
tricontourf = _cmap_changer(
3223-
_default_transform(GeoAxes.tricontourf)
3224-
)
3225-
32263224
# Special GeoAxes commands
32273225
get_extent = _default_crs(GeoAxes.get_extent)
32283226
set_extent = _default_crs(GeoAxes.set_extent)

0 commit comments

Comments
 (0)