Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 5b108bc

Browse files
authored
COMPAT: Fix the last warning from matplotlib 3.5.0 (pandas-dev#44544)
1 parent 23176c0 commit 5b108bc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/plotting/_matplotlib/core.py

-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ def _plot_colorbar(self, ax: Axes, **kwds):
10361036
# use the last one which contains the latest information
10371037
# about the ax
10381038
img = ax.collections[-1]
1039-
ax.grid(False)
10401039
cbar = self.fig.colorbar(img, ax=ax, **kwds)
10411040

10421041
if mpl_ge_3_0_0():

pandas/tests/plotting/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def is_grid_on():
552552
obj.plot(kind=kind, grid=False, **kws)
553553
assert not is_grid_on()
554554

555-
if kind != "pie":
555+
if kind not in ["pie", "hexbin", "scatter"]:
556556
self.plt.subplot(1, 4 * len(kinds), spndx)
557557
spndx += 1
558558
mpl.rc("axes", grid=True)

0 commit comments

Comments
 (0)