We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf9a12 commit 801e7c7Copy full SHA for 801e7c7
pandas/tests/plotting/test_hist_method.py
@@ -34,14 +34,14 @@ def test_hist_legacy(self):
34
_check_plot_works(self.ts.hist, by=self.ts.index.month, bins=5)
35
36
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)
+ _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)
40
tm.close()
41
42
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)
+ _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)
45
46
with pytest.raises(ValueError):
47
self.ts.hist(by=self.ts.index, figure=fig)
0 commit comments