Skip to content

Commit 77f2b71

Browse files
committed
Temporary bugfix
1 parent f28ef0f commit 77f2b71

File tree

1 file changed

+54
-12
lines changed

1 file changed

+54
-12
lines changed

proplot/axes.py

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,19 +3065,61 @@ def projection(self, map_projection):
30653065
self._map_projection = map_projection
30663066

30673067
# Wrapped methods
3068-
plot = _default_transform(Axes.plot)
3069-
scatter = _default_transform(Axes.scatter)
3070-
contour = _default_transform(Axes.contour)
3071-
contourf = _default_transform(Axes.contourf)
3072-
quiver = _default_transform(Axes.quiver)
3073-
streamplot = _default_transform(Axes.streamplot)
3074-
barbs = _default_transform(Axes.barbs)
3075-
pcolor = _default_transform(Axes.pcolor)
3076-
pcolormesh = _default_transform(Axes.pcolormesh)
3077-
tripcolor = _default_transform(Axes.tripcolor)
3078-
tricontour = _default_transform(Axes.tricontour)
3079-
tricontourf = _default_transform(Axes.tricontourf)
3068+
# TODO: Remove this duplication of Axes! Can do this when we implement
3069+
# all wrappers as decorators.
30803070
if GeoAxes is not object:
3071+
text = _text_wrapper(
3072+
GeoAxes.text
3073+
)
3074+
plot = _plot_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3075+
_redirect(GeoAxes.plot)
3076+
))))
3077+
scatter = _scatter_wrapper(_standardize_1d(_add_errorbars(_cycle_changer(
3078+
_redirect(GeoAxes.scatter)
3079+
))))
3080+
fill_between = _fill_between_wrapper(_standardize_1d(_cycle_changer(
3081+
GeoAxes.fill_between
3082+
)))
3083+
fill_betweenx = _fill_betweenx_wrapper(_standardize_1d(_cycle_changer(
3084+
GeoAxes.fill_betweenx
3085+
)))
3086+
3087+
# Wrapped by cmap wrapper and standardized
3088+
# Also support redirecting to Basemap methods
3089+
contour = _standardize_2d(_cmap_changer(
3090+
_redirect(GeoAxes.contour)
3091+
))
3092+
contourf = _standardize_2d(_cmap_changer(
3093+
_redirect(GeoAxes.contourf)
3094+
))
3095+
pcolor = _standardize_2d(_cmap_changer(
3096+
_redirect(GeoAxes.pcolor)
3097+
))
3098+
pcolormesh = _standardize_2d(_cmap_changer(
3099+
_redirect(GeoAxes.pcolormesh)
3100+
))
3101+
quiver = _standardize_2d(_cmap_changer(
3102+
_redirect(GeoAxes.quiver)
3103+
))
3104+
streamplot = _standardize_2d(_cmap_changer(
3105+
_redirect(GeoAxes.streamplot)
3106+
))
3107+
barbs = _standardize_2d(_cmap_changer(
3108+
_redirect(GeoAxes.barbs)
3109+
))
3110+
3111+
# Wrapped only by cmap wrapper
3112+
tripcolor = _cmap_changer(
3113+
GeoAxes.tripcolor
3114+
)
3115+
tricontour = _cmap_changer(
3116+
GeoAxes.tricontour
3117+
)
3118+
tricontourf = _cmap_changer(
3119+
GeoAxes.tricontourf
3120+
)
3121+
3122+
# Special GeoAxes commands
30813123
get_extent = _default_crs(GeoAxes.get_extent)
30823124
set_extent = _default_crs(GeoAxes.set_extent)
30833125
set_xticks = _default_crs(GeoAxes.set_xticks)

0 commit comments

Comments
 (0)