File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1282,7 +1282,7 @@ def test_format_timedelta_ticks_narrow(self):
1282
1282
rng = timedelta_range ('0' , periods = 10 , freq = 'ns' )
1283
1283
df = DataFrame (np .random .randn (len (rng ), 3 ), rng )
1284
1284
ax = df .plot (fontsize = 2 )
1285
- ax . get_figure (). canvas .draw ()
1285
+ plt .draw ()
1286
1286
plt .gcf ().autofmt_xdate ()
1287
1287
labels = ax .get_xticklabels ()
1288
1288
self .assertEqual (len (labels ), len (expected_labels ))
@@ -1308,7 +1308,7 @@ def test_format_timedelta_ticks_wide(self):
1308
1308
rng = timedelta_range ('0' , periods = 10 , freq = '1 d' )
1309
1309
df = DataFrame (np .random .randn (len (rng ), 3 ), rng )
1310
1310
ax = df .plot (fontsize = 2 )
1311
- ax . get_figure (). canvas .draw ()
1311
+ plt .draw ()
1312
1312
plt .gcf ().autofmt_xdate ()
1313
1313
labels = ax .get_xticklabels ()
1314
1314
self .assertEqual (len (labels ), len (expected_labels ))
You can’t perform that action at this time.
0 commit comments