Skip to content

Problem with _init_func in ArtistAnimation #5592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jenshnielsen opened this issue Nov 30, 2015 · 2 comments
Closed

Problem with _init_func in ArtistAnimation #5592

jenshnielsen opened this issue Nov 30, 2015 · 2 comments
Assignees
Milestone

Comments

@jenshnielsen
Copy link
Member

Found by @tomoemon in #5508

I found another problem within animation.py while testing on master branch.

The commit 728db55 has modified Animation.save method, but _init_func is not a member of Animation. So saving the ArtistAnimation raises an exception.

/home/tomoemon/project/matplotlib/.py27/lib/python2.7/site-packages/matplotlib-1.5.0+481.g6245d4e.dirty-py2.7-linux-x86_64.egg/matplotlib/animation.pyc in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
777 for anim in all_anim:
778 # Clear the initial frame
--> 779 if anim._init_func:
780 anim._init_draw()
781 for data in zip(*[a.new_saved_frame_seq()

AttributeError: 'ArtistAnimation' object has no attribute '_init_func'
Anyway I try to create a PR for base64 issue. (The above problem is too confusing for me for now)

@jenshnielsen jenshnielsen self-assigned this Nov 30, 2015
@jenshnielsen jenshnielsen added this to the Critical bugfix release (1.5.1) milestone Nov 30, 2015
@twmr
Copy link
Contributor

twmr commented Dec 21, 2015

I've just encountered the same issue.

@QuLogic
Copy link
Member

QuLogic commented Dec 24, 2015

Fixed by #5740.

@QuLogic QuLogic closed this as completed Dec 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants