From 68166aeac25becc130feda82e6d9b622577f40ff Mon Sep 17 00:00:00 2001 From: Matthew Zeitlin Date: Wed, 23 Dec 2020 11:40:53 -0500 Subject: [PATCH] TST: fix rest of mpl warnings --- pandas/tests/plotting/test_hist_method.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandas/tests/plotting/test_hist_method.py b/pandas/tests/plotting/test_hist_method.py index e2a36dc5d6a1b..c72e59658d346 100644 --- a/pandas/tests/plotting/test_hist_method.py +++ b/pandas/tests/plotting/test_hist_method.py @@ -34,14 +34,14 @@ def test_hist_legacy(self): _check_plot_works(self.ts.hist, by=self.ts.index.month, bins=5) fig, ax = self.plt.subplots(1, 1) - _check_plot_works(self.ts.hist, ax=ax) - _check_plot_works(self.ts.hist, ax=ax, figure=fig) - _check_plot_works(self.ts.hist, figure=fig) + _check_plot_works(self.ts.hist, ax=ax, default_axes=True) + _check_plot_works(self.ts.hist, ax=ax, figure=fig, default_axes=True) + _check_plot_works(self.ts.hist, figure=fig, default_axes=True) tm.close() fig, (ax1, ax2) = self.plt.subplots(1, 2) - _check_plot_works(self.ts.hist, figure=fig, ax=ax1) - _check_plot_works(self.ts.hist, figure=fig, ax=ax2) + _check_plot_works(self.ts.hist, figure=fig, ax=ax1, default_axes=True) + _check_plot_works(self.ts.hist, figure=fig, ax=ax2, default_axes=True) with pytest.raises(ValueError): self.ts.hist(by=self.ts.index, figure=fig)