Skip to content

Commit 215fb89

Browse files
authored
Update _core.py
removing PATH_MODE debugging flag
1 parent 8f52eab commit 215fb89

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

pandas/plotting/_core.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,7 @@ def _make_plot(self):
870870
scatter = ax.scatter(data[x].values, data[y].values, c=c_values,
871871
label=label, cmap=cmap, **self.kwds)
872872
if cb:
873-
if PATCH_MODE:
874-
ax._pandas_colorbar_axes = True
873+
ax._pandas_colorbar_axes = True
875874
img = ax.collections[0]
876875
kws = dict(ax=ax)
877876
if self.mpl_ge_1_3_1():
@@ -918,8 +917,7 @@ def _make_plot(self):
918917
ax.hexbin(data[x].values, data[y].values, C=c_values, cmap=cmap,
919918
**self.kwds)
920919
if cb:
921-
if PATCH_MODE:
922-
ax._pandas_colorbar_axes = True
920+
ax._pandas_colorbar_axes = True
923921
img = ax.collections[0]
924922
self.fig.colorbar(img, ax=ax)
925923

@@ -3213,7 +3211,7 @@ def pie(self, y=None, **kwds):
32133211
"""
32143212
return self(kind='pie', y=y, **kwds)
32153213

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):
32173215
"""
32183216
Create a scatter plot with varying marker point size and color.
32193217
@@ -3292,13 +3290,10 @@ def scatter(self, x, y, s=None, c=None,PATCH_MODE_FLAG = False, **kwds):
32923290
... c='species',
32933291
... colormap='viridis')
32943292
"""
3295-
3296-
global PATCH_MODE
3297-
PATCH_MODE = PATCH_MODE_FLAG
32983293

32993294
return self(kind='scatter', x=x, y=y, c=c, s=s, **kwds)
33003295

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,
33023297
**kwds):
33033298
"""
33043299
Generate a hexagonal binning plot.
@@ -3381,8 +3376,6 @@ def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None, PATCH_MODE
33813376
... gridsize=10,
33823377
... cmap="viridis")
33833378
"""
3384-
global PATCH_MODE
3385-
PATCH_MODE = PATCH_MODE_FLAG
33863379

33873380
if reduce_C_function is not None:
33883381
kwds['reduce_C_function'] = reduce_C_function

0 commit comments

Comments
 (0)