@@ -3065,19 +3065,61 @@ def projection(self, map_projection):
3065
3065
self ._map_projection = map_projection
3066
3066
3067
3067
# 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.
3080
3070
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
3081
3123
get_extent = _default_crs (GeoAxes .get_extent )
3082
3124
set_extent = _default_crs (GeoAxes .set_extent )
3083
3125
set_xticks = _default_crs (GeoAxes .set_xticks )
0 commit comments