@@ -870,8 +870,7 @@ def _make_plot(self):
870
870
scatter = ax .scatter (data [x ].values , data [y ].values , c = c_values ,
871
871
label = label , cmap = cmap , ** self .kwds )
872
872
if cb :
873
- if PATCH_MODE :
874
- ax ._pandas_colorbar_axes = True
873
+ ax ._pandas_colorbar_axes = True
875
874
img = ax .collections [0 ]
876
875
kws = dict (ax = ax )
877
876
if self .mpl_ge_1_3_1 ():
@@ -918,8 +917,7 @@ def _make_plot(self):
918
917
ax .hexbin (data [x ].values , data [y ].values , C = c_values , cmap = cmap ,
919
918
** self .kwds )
920
919
if cb :
921
- if PATCH_MODE :
922
- ax ._pandas_colorbar_axes = True
920
+ ax ._pandas_colorbar_axes = True
923
921
img = ax .collections [0 ]
924
922
self .fig .colorbar (img , ax = ax )
925
923
@@ -3213,7 +3211,7 @@ def pie(self, y=None, **kwds):
3213
3211
"""
3214
3212
return self (kind = 'pie' , y = y , ** kwds )
3215
3213
3216
- def scatter (self , x , y , s = None , c = None ,PATCH_MODE_FLAG = False , ** kwds ):
3214
+ def scatter (self , x , y , s = None , c = None , ** kwds ):
3217
3215
"""
3218
3216
Create a scatter plot with varying marker point size and color.
3219
3217
@@ -3292,13 +3290,10 @@ def scatter(self, x, y, s=None, c=None,PATCH_MODE_FLAG = False, **kwds):
3292
3290
... c='species',
3293
3291
... colormap='viridis')
3294
3292
"""
3295
-
3296
- global PATCH_MODE
3297
- PATCH_MODE = PATCH_MODE_FLAG
3298
3293
3299
3294
return self (kind = 'scatter' , x = x , y = y , c = c , s = s , ** kwds )
3300
3295
3301
- def hexbin (self , x , y , C = None , reduce_C_function = None , gridsize = None , PATCH_MODE_FLAG = False ,
3296
+ def hexbin (self , x , y , C = None , reduce_C_function = None , gridsize = None ,
3302
3297
** kwds ):
3303
3298
"""
3304
3299
Generate a hexagonal binning plot.
@@ -3381,8 +3376,6 @@ def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None, PATCH_MODE
3381
3376
... gridsize=10,
3382
3377
... cmap="viridis")
3383
3378
"""
3384
- global PATCH_MODE
3385
- PATCH_MODE = PATCH_MODE_FLAG
3386
3379
3387
3380
if reduce_C_function is not None :
3388
3381
kwds ['reduce_C_function' ] = reduce_C_function
0 commit comments