Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1897cfa

Browse files
authored
Import time module so that pyplot.pause works
At the moment, there is a bug (GH #9412) during the last frame in pyplot interactive mode. pause() uses time.sleep, but doesn't import the time module.
1 parent b35e240 commit 1897cfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import sys
2424
import warnings
25+
import time
2526
import types
2627

2728
from cycler import cycler

0 commit comments

Comments
 (0)