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

Commit9e71fc3

Browse files
committed
DOC: Make animation continuous
This changes the phase such that the start and end images arethe same. This is a bit nicer for the animation thumbnailshttps://matplotlib.org/devdocs/gallery/index.html#animation.They are shown in an endless loop and if start and end imagesare different, we get a discontiguous jump when the animationis repeated. With this changes, the animation flow iscontiguous.
1 parent3c615b5 commit9e71fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎examples/animation/dynamic_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def f(x, y):
2323
# each frame
2424
ims= []
2525
foriinrange(60):
26-
x+=np.pi/15.
27-
y+=np.pi/20.
26+
x+=np.pi/15
27+
y+=np.pi/30
2828
im=ax.imshow(f(x,y),animated=True)
2929
ifi==0:
3030
ax.imshow(f(x,y))# show an initial one first

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp