Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2601a6

Browse files
committed
Added plot to cividis info
1 parent 7fcb2f9 commit c2601a6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@ Cividis colormap
22
----------------------------
33

44
A new colormap, named cividis, has been optimized so that it looks similar to people with a red-green color vision deficiency. For more information, please see our paper (to be published in 2018).
5+
6+
plot::
7+
8+
import matplotlib.pyplot
9+
import numpy as np
10+
11+
fig, ax = plt.subplots()
12+
pcm = ax.pcolormesh(np.rand.random(32,32), cmap='cividis')
13+
fig.colorbar(pcm)

0 commit comments

Comments
 (0)