Skip to content

Commit

Permalink
TST: Filter false positive matplotlib warning (pandas-dev#48317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Aug 31, 2022
1 parent b3e8bbe commit bfdb524
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandas/plotting/_matplotlib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,11 @@ def _plot_colorbar(self, ax: Axes, **kwds):
# use the last one which contains the latest information
# about the ax
img = ax.collections[-1]
return self.fig.colorbar(img, ax=ax, **kwds)
with warnings.catch_warnings():
# https://github.com/matplotlib/matplotlib/issues/23614
# False positive deprecation warning until matplotlib=3.6
warnings.filterwarnings("ignore", "Auto-removal of grids")
return self.fig.colorbar(img, ax=ax, **kwds)


class ScatterPlot(PlanePlot):
Expand Down

0 comments on commit bfdb524

Please sign in to comment.