Skip to content

Instantly share code, notes, and snippets.

@jklymak
Last active August 29, 2015 14:06
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 jklymak/ba58bc2fd1360174e1b7 to your computer and use it in GitHub Desktop.
Save jklymak/ba58bc2fd1360174e1b7 to your computer and use it in GitHub Desktop.
Dissipation colormap
# make a good dissipation color map
cdict = {'red': ((0., 1, 1),
(0.05, 1, 1),
(0.11, 1, 1),
(0.4, 0, 0),
(0.66, 1, 1),
(0.89, 1, 1),
(1, 0.5, 0.5)),
'green': ((0., 1, 1),
(0.05, 1, 1),
(0.11, 1, 1),
(0.375, 1, 1),
(0.64, 1, 1),
(0.91, 0, 0),
(1, 0, 0)),
'blue': ((0., 1, 1),
(0.05, 1, 1),
(0.11, 1, 1),
(0.34, 1, 1),
(0.65, 0, 0),
(1, 0, 0))}
disp_cmap = matplotlib.colors.LinearSegmentedColormap('my_colormap',cdict,256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment