From 8fd9d484f9500af22159af44c0b9ef10342e9919 Mon Sep 17 00:00:00 2001 From: Souvik Mandal Date: Fri, 27 Dec 2019 00:52:43 +0530 Subject: [PATCH] TST: test for #30288 --- pandas/tests/plotting/test_hist_method.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pandas/tests/plotting/test_hist_method.py b/pandas/tests/plotting/test_hist_method.py index 6c1c7dfd1a4a4..c1c0f7fd2532f 100644 --- a/pandas/tests/plotting/test_hist_method.py +++ b/pandas/tests/plotting/test_hist_method.py @@ -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):