Selection of colors in Plotly
This is an easy way to pick 16 colors from a color palete:
from plotly.express.colors import sample_colorscale
from sklearn import preprocessing
x= preprocessing.minmax_scale([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],feature_range=(0,1),axis=0,copy=True)
# x=sklearn.preprocessing.minmax_scale([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
c=sample_colorscale('HSV',x)