Python - plotly assigning scatterplot colors by label
I'm trying to replicate one of the basic examples in Plotly R https://plot.ly/r/line-and-scatter/#qualitative-colorscales into Plotly Python. But finding it impossible. The same problem is also solved in R here: Plotly assigning colors based on label ``` trace0 = go.Scatter( x = x1, y = y1, mode = 'markers', name = ytitle + ' X vs ' + Atitle, marker=dict(size=4, symbol='circle', color=colorsIdx, colorbar= go.ColorBar(title= 'colorbar'), colorscale='Viridis') ) ``` The closest I've gotten is using a colorbar, but that is suboptimal since I can't figure out how to pick colors so that they don't