@@ -1033,10 +1033,11 @@ def test_time(self):
1033
1033
df = DataFrame ({'a' : np .random .randn (len (ts )),
1034
1034
'b' : np .random .randn (len (ts ))},
1035
1035
index = ts )
1036
- _ , ax = self .plt .subplots ()
1036
+ fig , ax = self .plt .subplots ()
1037
1037
df .plot (ax = ax )
1038
1038
1039
1039
# verify tick labels
1040
+ fig .canvas .draw ()
1040
1041
ticks = ax .get_xticks ()
1041
1042
labels = ax .get_xticklabels ()
1042
1043
for t , l in zip (ticks , labels ):
@@ -1051,6 +1052,7 @@ def test_time(self):
1051
1052
ax .set_xlim ('1:30' , '5:00' )
1052
1053
1053
1054
# check tick labels again
1055
+ fig .canvas .draw ()
1054
1056
ticks = ax .get_xticks ()
1055
1057
labels = ax .get_xticklabels ()
1056
1058
for t , l in zip (ticks , labels ):
@@ -1070,10 +1072,11 @@ def test_time_musec(self):
1070
1072
df = DataFrame ({'a' : np .random .randn (len (ts )),
1071
1073
'b' : np .random .randn (len (ts ))},
1072
1074
index = ts )
1073
- _ , ax = self .plt .subplots ()
1075
+ fig , ax = self .plt .subplots ()
1074
1076
ax = df .plot (ax = ax )
1075
1077
1076
1078
# verify tick labels
1079
+ fig .canvas .draw ()
1077
1080
ticks = ax .get_xticks ()
1078
1081
labels = ax .get_xticklabels ()
1079
1082
for t , l in zip (ticks , labels ):
0 commit comments