Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6204ca8 + 4fd757b commit 52b31c0Copy full SHA for 52b31c0
lib/matplotlib/animation.py
@@ -226,6 +226,7 @@ def _args(self):
226
def cleanup(self):
227
'Clean-up and collect the process used to write the movie file.'
228
out, err = self._proc.communicate()
229
+ self._frame_sink().close()
230
verbose.report('MovieWriter -- '
231
'Command stdout:\n%s' % out, level='debug')
232
lib/matplotlib/backends/backend_pgf.py
@@ -342,9 +342,9 @@ def _cleanup(self):
342
if not os.path.isdir(self.tmpdir):
343
return
344
try:
345
- self.latex_stdin_utf8.close()
346
self.latex.communicate()
347
- self.latex.wait()
+ self.latex_stdin_utf8.close()
+ self.latex.stdout.close()
348
except:
349
pass
350
0 commit comments