Skip to content

Commit 1ab19dc

Browse files
committed
Edited formatting for the example plot
1 parent 997d9b9 commit 1ab19dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/users/next_whats_new/2017-12-05_cividis_colormap.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ A new colormap, named cividis, has been optimized so that it looks similar to pe
55

66
.. plot::
77

8-
import matplotlib.pyplot
8+
import matplotlib.pyplot as plt
99
import numpy as np
1010

1111
fig, ax = plt.subplots()
12-
pcm = ax.pcolormesh(np.rand.random(32,32), cmap='cividis')
12+
pcm = ax.pcolormesh(np.random.rand(32,32), cmap='cividis')
1313
fig.colorbar(pcm)

0 commit comments

Comments
 (0)