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

DOC: Fix resizing of animation examples#27006

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
story645 merged 1 commit intomatplotlib:mainfromQuLogic:fix-anim-resize
Oct 6, 2023

Conversation

QuLogic
Copy link
Member

PR summary

On resize, eitherinit_func will be called, or if not defined, the mainfunc withi=0 is called. On animations that save a state, the latter can cause weird glitching as the history will skip around.

  • Forbayes_update, I fixed it by providing aninit_func.
  • Fordouble_pendulum, I fixed it by simplifying the trace line (since we have the entire history pre-computed.)

PR checklist

@QuLogicQuLogic added the Documentation: examplesfiles in galleries/examples labelOct 5, 2023
@QuLogic
Copy link
MemberAuthor

For example, this will cause the double pendulum history to skip points like:
image

On resize, either `init_func` will be called, or if not defined, themain `func` with `i=0` is called. On animations that save a state, thelatter can cause weird glitching as the history will skip around.* For `bayes_update`, I fixed it by providing an `init_func`.* For `double_pendulum`, I fixed it by simplifying the trace line (since  we have the entire history pre-computed.)
@story645story645 added this to thev3.8-doc milestoneOct 5, 2023
@story645story645 merged commitd9b3449 intomatplotlib:mainOct 6, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 6, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestOct 6, 2023
@QuLogicQuLogic deleted the fix-anim-resize branchOctober 6, 2023 03:46
ksunden added a commit that referenced this pull requestOct 6, 2023
…006-on-v3.8.xBackport PR#27006 on branch v3.8.x (DOC: Fix resizing of animation examples)
ksunden added a commit that referenced this pull requestOct 6, 2023
…006-on-v3.8.0-docBackport PR#27006 on branch v3.8.0-doc (DOC: Fix resizing of animation examples)
@ksundenksunden mentioned this pull requestNov 2, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

Assignees
No one assigned
Labels
Documentation: examplesfiles in galleries/examples
Projects
None yet
Milestone
v3.8-doc
Development

Successfully merging this pull request may close these issues.

2 participants
@QuLogic@story645

[8]ページ先頭

©2009-2025 Movatter.jp