Skip to content

Commit 801e7c7

Browse files
mzeitlin11luckyvs1
authored andcommitted
TST: fix rest of mpl warnings (pandas-dev#38659)
1 parent 9cf9a12 commit 801e7c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/plotting/test_hist_method.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ def test_hist_legacy(self):
3434
_check_plot_works(self.ts.hist, by=self.ts.index.month, bins=5)
3535

3636
fig, ax = self.plt.subplots(1, 1)
37-
_check_plot_works(self.ts.hist, ax=ax)
38-
_check_plot_works(self.ts.hist, ax=ax, figure=fig)
39-
_check_plot_works(self.ts.hist, figure=fig)
37+
_check_plot_works(self.ts.hist, ax=ax, default_axes=True)
38+
_check_plot_works(self.ts.hist, ax=ax, figure=fig, default_axes=True)
39+
_check_plot_works(self.ts.hist, figure=fig, default_axes=True)
4040
tm.close()
4141

4242
fig, (ax1, ax2) = self.plt.subplots(1, 2)
43-
_check_plot_works(self.ts.hist, figure=fig, ax=ax1)
44-
_check_plot_works(self.ts.hist, figure=fig, ax=ax2)
43+
_check_plot_works(self.ts.hist, figure=fig, ax=ax1, default_axes=True)
44+
_check_plot_works(self.ts.hist, figure=fig, ax=ax2, default_axes=True)
4545

4646
with pytest.raises(ValueError):
4747
self.ts.hist(by=self.ts.index, figure=fig)

0 commit comments

Comments
 (0)