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)