Closed
Description
Bug report
Itertools is generating errors in animation.py when saving animations
There is a call to itertools.islice when writing animations. With python 3.6 and matplotlib 2.0.2 this gives an error when the stop argument is of type np.int64 but works fine when the type is int. I'll report this as an issue with itertools well.
The error arises when this code is used (cf line 1553 in animation.new_saved_frame_seq() ):
itertools.islice( [3, 4, 5], np.int64(2) )
but not with this
itertools.islice([3,4,5], 2)
A workaround is to add the following line at the start of animation.new_saved_frame_seq():
self.save_count = int(self.save_count)
Matplotlib version
- Operating System: Ubuntu 14.04
- Matplotlib Version: 2.0.2
- Python Version: 3.6.2
Installed from conda
Metadata
Metadata
Assignees
Labels
No labels