Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplify animation writer fallback.#16967

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:masterfromanntzer:animfallback-pillow
Mar 31, 2020

Conversation

anntzer
Copy link
Contributor

The fallback now always returns PillowWriter, which is the first
registered writer and is always available, so we may just as well be
more explicit.

(Not all writers support all output formats, but we don't have machinery
to select writers based on the output format right now anyways.)

Slightly more complex than#16966 so I'm milestoning this one to 3.3.0 instead, but we could also backport it to 3.2.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzeranntzer added this to thev3.3.0 milestoneMar 30, 2020
@tacaswell
Copy link
Member

#16966 should be merged first and backported and then this one.

@tacaswell
Copy link
Member

We don't have a hard dependency on pillow with 3.2 so we should not backport this to 3.2.x

@anntzer
Copy link
ContributorAuthor

Ah, lost track of when the dependency came in.

@timhoffm
Copy link
Member

Flake8:

./lib/matplotlib/animation.py:1095:50: F821 undefined name 'alt_writer'

@anntzer
Copy link
ContributorAuthor

oops

The fallback now always returns PillowWriter, which is the firstregistered writer and is always available, so we may just as well bemore explicit.(Not all writers support all output formats, but we don't have machineryto select writers based on the output format right now anyways.)
@anntzer
Copy link
ContributorAuthor

rebased

@QuLogicQuLogic merged commit338e1e9 intomatplotlib:masterMar 31, 2020
@anntzeranntzer deleted the animfallback-pillow branchMarch 31, 2020 07:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@tacaswell@timhoffm@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp