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