public marks

PUBLIC MARKS with tags hex & python

20 April 2022 13:00

Extract matplotlib colormap in hex-format

by cascamorto
import matplotlib from matplotlib import cm # See https://stackoverflow.com/a/65677873 for None usage cmap = cm.get_cmap('Paired', None) # PiYG print('cmap = n ') print(cmap) for i in range(cmap.N): rgba = cmap(i) # rgb2hex accepts rgb or rgba print(matplotlib.colors.rgb2hex(rgba))

PUBLIC TAGS related to tag hex

cmyk +   color +   design +   pms +   webdesign +  

Active users

cascamorto
last mark : 22/04/2022 22:32