Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get colorscale

import matplotlib.pyplot as plt
cmap = plt.cm.get_cmap('Spectral')
rgba = cmap(0.75)
print(rgba) # (0.5273356401384084, 0.8106113033448674, 0.6452133794694349, 1.0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #colorscale
ADD COMMENT
Topic
Name
2+9 =