Last active
July 25, 2017 02:56
-
-
Save chomy/832806832fc6cc573c3b80c61873edc9 to your computer and use it in GitHub Desktop.
generate jet colormap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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