Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plt get colors in range

import matplotlib

cmap = matplotlib.cm.get_cmap('Spectral')

rgba = cmap(0.5)
print(rgba) # (0.99807766255210428, 0.99923106502084169, 0.74602077638401709, 1.0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plt #colors #range
ADD COMMENT
Topic
Name
2+2 =