Skip to content

Commit

Permalink
MNT: change cmap to viridis + animate=True flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Aug 27, 2015
1 parent dd1d727 commit ebfe80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/animation/dynamic_image.py
Expand Up @@ -15,7 +15,7 @@ def f(x, y):
x = np.linspace(0, 2 * np.pi, 120)
y = np.linspace(0, 2 * np.pi, 100).reshape(-1, 1)

im = plt.imshow(f(x, y), cmap=plt.get_cmap('jet'))
im = plt.imshow(f(x, y), cmap=plt.get_cmap('viridis'), animated=True)


def updatefig(*args):
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/dynamic_image2.py
Expand Up @@ -21,7 +21,7 @@ def f(x, y):
for i in range(60):
x += np.pi / 15.
y += np.pi / 20.
im = plt.imshow(f(x, y))
im = plt.imshow(f(x, y), cmap='viridis', animated=True)
ims.append([im])

ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True,
Expand Down

0 comments on commit ebfe80d

Please sign in to comment.