Skip to content

Commit 8fd9d48

Browse files
committed
TST: test for pandas-dev#30288
1 parent 43d2c4f commit 8fd9d48

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pandas/tests/plotting/test_hist_method.py

+14
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,20 @@ def test_tight_layout(self):
253253

254254
tm.close()
255255

256+
def test_hist_subplot_xrot(self):
257+
df = DataFrame({
258+
'length': [1.5, 0.5, 1.2, 0.9, 3],
259+
'animal': ['pig', 'rabbit', 'pig', 'pig', 'rabbit']
260+
})
261+
axes = _check_plot_works(
262+
df.hist,
263+
filterwarnings="always",
264+
column='length',
265+
by='animal',
266+
bins=5,
267+
xrot=0
268+
)
269+
self._check_ticks_props(axes,xrot=0)
256270

257271
@td.skip_if_no_mpl
258272
class TestDataFrameGroupByPlots(TestPlotBase):

0 commit comments

Comments
 (0)