8000 WIP: Fix some animation confusion by dopplershift · Pull Request #6421 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

WIP: Fix some animation confusion #6421

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 4 commits into from
May 16, 2016

Conversation

dopplershift
Copy link
Contributor

This fixes #6416.

It refactors and expands checking for the 'tight' figure bounding boxes that break piping image data to animation writers. First ,refactor things so that the writers can specify whether they handle changing figure sizes. By default MovieWriter (i.e. pipe-based writers) sets the flag to False, while MovieFileWriter sets it to True; this seems to work appropriately for all of the various writers (on OSX at least, but I don't think this is a platform issue). It also adds handling of the 'savefig.bbox' rcParam.

The issue of what to do about being given a MovieWriter instance and kwargs for creating one remains TBD.

@dopplershift dopplershift added this to the 1.5.2 (Critical bug fix release) milestone May 13, 2016
@jenshnielsen
Copy link
Member

👍 the travis failure is due to a couple of lines being to long

Instead of a hard-coded look for either instance types or strings, make
it a property of the MovieWriter instances. Set the flag to true by
default for the MovieFileWriters (which all seem to work fine) and make
it false by default for MovieWriters (which are currently pipe-based and
break). We can also eliminate looking at strings by doing the check
after we create the instance of MovieWriter (if necessary).
This fixes part of matplotlib#6416 by resetting the 'savefig.bbox' rcParam if it
is set to 'tight'.
@dopplershift
Copy link
Contributor Author

Fixed (and rebased to squash the fix--hell will freeze over before a commit with my name only fixes pep8 😈 ).

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
0