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

Skip to content

Commit e699189

Browse files
committed
Close framesink in non file based animation too.
1 parent 5199360 commit e699189

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def _args(self):
226226
def cleanup(self):
227227
'Clean-up and collect the process used to write the movie file.'
228228
out, err = self._proc.communicate()
229+
self._frame_sink().close()
229230
verbose.report('MovieWriter -- '
230231
'Command stdout:\n%s' % out, level='debug')
231232
verbose.report('MovieWriter -- '

0 commit comments

Comments
 (0)