From 1897cfa946f6a60eeee7ed3064cc739da1a3afb8 Mon Sep 17 00:00:00 2001 From: Filip Dimitrovski Date: Sun, 15 Oct 2017 20:46:28 +0200 Subject: [PATCH] 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. --- lib/matplotlib/pyplot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 36f6dec7a5e1..7a40b1920881 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -22,6 +22,7 @@ import sys import warnings +import time import types from cycler import cycler