From ebfe80d427586f6b5ea9d570b69c89488f7c2788 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 26 Aug 2015 23:45:39 -0400 Subject: [PATCH] MNT: change cmap to viridis + animate=True flag --- examples/animation/dynamic_image.py | 2 +- examples/animation/dynamic_image2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/animation/dynamic_image.py b/examples/animation/dynamic_image.py index 247bbc031ad9..fd07c36e7bb4 100644 --- a/examples/animation/dynamic_image.py +++ b/examples/animation/dynamic_image.py @@ -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): diff --git a/examples/animation/dynamic_image2.py b/examples/animation/dynamic_image2.py index c4a29b3d00aa..b15723081020 100644 --- a/examples/animation/dynamic_image2.py +++ b/examples/animation/dynamic_image2.py @@ -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,