Skip to content

Instantly share code, notes, and snippets.

@chomy
Last active July 25, 2017 02:56
Show Gist options
  • Save chomy/832806832fc6cc573c3b80c61873edc9 to your computer and use it in GitHub Desktop.
Save chomy/832806832fc6cc573c3b80c61873edc9 to your computer and use it in GitHub Desktop.
generate jet colormap
#!/usr/bin/python3
from matplotlib import cm
N = 3000
cm.jet.N = N
for i in range(N):
color = map(lambda x:int(x*255), cm.jet(i))
print('%d %d %d %d 1'%(i,color[0],color[1],color[2]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment