Skip to content

Instantly share code, notes, and snippets.

@ericdill
Created May 11, 2017 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdill/2978f2b34e7f56b8fac959df3766b2d0 to your computer and use it in GitHub Desktop.
Save ericdill/2978f2b34e7f56b8fac959df3766b2d0 to your computer and use it in GitHub Desktop.
6 element viridis colormap
# import matplotlib.cm as cm
# import numpy as np
# np.round(cm.viridis(np.arange(0, 1.2, 1/5)) * 255)
array([[ 68, 1, 84, 255],
[ 65, 68, 135, 255],
[ 42, 120, 142, 255],
[ 34, 168, 132, 255],
[122, 209, 81, 255],
[253, 231, 37, 255]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment