Skip to content

Only call init function at the begining of a save when user supplied #5402

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

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

jenshnielsen
Copy link
Member

If a user supplied function is given it is probably needed to restart the animation. The default just inserts the first frame and restarts the animation which is not useful. Fixes #5399

If a user supplied function is given it is probably needed to restart the animation. The default just inserts the first frame and restarts the animation which is not useful. Fixes matplotlib#5399
@cbreeden
Copy link

cbreeden commented Nov 4, 2015

Awesome. I like it.

@cbreeden
Copy link

cbreeden commented Nov 4, 2015

Sorry about punting the issue, I wasn't exactly sure how init_func was supposed to behave, but I'm guessing it's just a user-defined function to get your animation prepared for drawing judging by the example modified in #4800. In which case, this change makes perfect sense.

@tacaswell
Copy link
Member

@cbreeden Can you confirm that this fixes your issue?

@cbreeden
Copy link

cbreeden commented Nov 4, 2015

@tacaswell yes. It fixes the issue described in #5399.

tacaswell added a commit that referenced this pull request Nov 4, 2015
FIX: Only call init function at the begining of a save when user supplied
@tacaswell tacaswell merged commit b27863d into matplotlib:v1.5.x Nov 4, 2015
@QuLogic QuLogic added this to the Next bugfix release (1.5.1) milestone Nov 5, 2015
@jenshnielsen jenshnielsen deleted the fix5399 branch November 9, 2015 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants