Skip to content

Commit

Permalink
TST: test for pandas-dev#30288
Browse files Browse the repository at this point in the history
  • Loading branch information
souvik3333 committed Dec 26, 2019
1 parent 43d2c4f commit 8fd9d48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pandas/tests/plotting/test_hist_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,20 @@ def test_tight_layout(self):

tm.close()

def test_hist_subplot_xrot(self):
df = DataFrame({
'length': [1.5, 0.5, 1.2, 0.9, 3],
'animal': ['pig', 'rabbit', 'pig', 'pig', 'rabbit']
})
axes = _check_plot_works(
df.hist,
filterwarnings="always",
column='length',
by='animal',
bins=5,
xrot=0
)
self._check_ticks_props(axes,xrot=0)

@td.skip_if_no_mpl
class TestDataFrameGroupByPlots(TestPlotBase):
Expand Down

0 comments on commit 8fd9d48

Please sign in to comment.