@@ -48,7 +48,6 @@ def _assert_xtickslabels_visibility(self, axes, expected):
48
48
for ax , exp in zip (axes , expected ):
49
49
self ._check_visible (ax .get_xticklabels (), visible = exp )
50
50
51
- @pytest .mark .xfail (reason = "Waiting for PR 34334" , strict = True )
52
51
@pytest .mark .slow
53
52
def test_plot (self ):
54
53
from pandas .plotting ._matplotlib .compat import mpl_ge_3_1_0
@@ -66,6 +65,7 @@ def test_plot(self):
66
65
67
66
with tm .assert_produces_warning (UserWarning ):
68
67
axes = _check_plot_works (df .plot , subplots = True , use_index = False )
68
+ self ._check_ticks_props (axes , xrot = 0 )
69
69
self ._check_axes_shape (axes , axes_num = 4 , layout = (4 , 1 ))
70
70
71
71
df = DataFrame ({"x" : [1 , 2 ], "y" : [3 , 4 ]})
@@ -78,7 +78,8 @@ def test_plot(self):
78
78
79
79
df = DataFrame (np .random .rand (10 , 3 ), index = list (string .ascii_letters [:10 ]))
80
80
81
- _check_plot_works (df .plot , use_index = True )
81
+ ax = _check_plot_works (df .plot , use_index = True )
82
+ self ._check_ticks_props (ax , xrot = 0 )
82
83
_check_plot_works (df .plot , sort_columns = False )
83
84
_check_plot_works (df .plot , yticks = [1 , 5 , 10 ])
84
85
_check_plot_works (df .plot , xticks = [1 , 5 , 10 ])
@@ -110,7 +111,8 @@ def test_plot(self):
110
111
111
112
tuples = zip (string .ascii_letters [:10 ], range (10 ))
112
113
df = DataFrame (np .random .rand (10 , 3 ), index = MultiIndex .from_tuples (tuples ))
113
- _check_plot_works (df .plot , use_index = True )
114
+ ax = _check_plot_works (df .plot , use_index = True )
115
+ self ._check_ticks_props (ax , xrot = 0 )
114
116
115
117
# unicode
116
118
index = MultiIndex .from_tuples (
@@ -304,12 +306,14 @@ def test_xcompat(self):
304
306
ax = df .plot (x_compat = True )
305
307
lines = ax .get_lines ()
306
308
assert not isinstance (lines [0 ].get_xdata (), PeriodIndex )
309
+ self ._check_ticks_props (ax , xrot = 30 )
307
310
308
311
tm .close ()
309
312
pd .plotting .plot_params ["xaxis.compat" ] = True
310
313
ax = df .plot ()
311
314
lines = ax .get_lines ()
312
315
assert not isinstance (lines [0 ].get_xdata (), PeriodIndex )
316
+ self ._check_ticks_props (ax , xrot = 30 )
313
317
314
318
tm .close ()
315
319
pd .plotting .plot_params ["x_compat" ] = False
@@ -325,12 +329,14 @@ def test_xcompat(self):
325
329
ax = df .plot ()
326
330
lines = ax .get_lines ()
327
331
assert not isinstance (lines [0 ].get_xdata (), PeriodIndex )
332
+ self ._check_ticks_props (ax , xrot = 30 )
328
333
329
334
tm .close ()
330
335
ax = df .plot ()
331
336
lines = ax .get_lines ()
332
337
assert not isinstance (lines [0 ].get_xdata (), PeriodIndex )
333
338
assert isinstance (PeriodIndex (lines [0 ].get_xdata ()), PeriodIndex )
339
+ self ._check_ticks_props (ax , xrot = 0 )
334
340
335
341
def test_period_compat (self ):
336
342
# GH 9012
@@ -486,7 +492,6 @@ def test_groupby_boxplot_sharex(self):
486
492
expected = [False , False , True , True ]
487
493
self ._assert_xtickslabels_visibility (axes , expected )
488
494
489
- @pytest .mark .xfail (reason = "Waiting for PR 34334" , strict = True )
490
495
@pytest .mark .slow
491
496
def test_subplots_timeseries (self ):
492
497
idx = date_range (start = "2014-07-01" , freq = "M" , periods = 10 )
0 commit comments