Hello,
Using a very simple df:
print(tokens.head(10))
Incremental Entity Moderate
0 95.0 15.0 3.0
1 10.0 16.0 7.0
2 188.0 13.0 7.0
3 29.0 16.0 15.0
4 61.0 17.0 19.0
5 61.0 18.0 14.0
6 48.0 23.0 18.0
7 137.0 21.0 19.0
8 68.0 21.0 28.0
9 183.0 23.0 29.0
I have created a strip plot using the following code on Plotly Express:
stripfig = px.strip(tokens,
labels = {‘variable’:‘Corpora’, ‘value’:‘tokens (running words) in text’})
stripfig.update_layout({‘plot_bgcolor’:‘rgba(0, 0, 0, 0)’})
stripfig.update_yaxes(showgrid = True,
tickvals = list(range(0, 401, 100)),
gridcolor = ‘#d7d7d9’,
zerolinecolor = ‘#d7d7d9’)
stripfig.show()
As you can see in the image I’ve uploaded, the problem is that all the categories come out in the same color and I would like to have a different color for each. Could you please help me modify my graph successfully?
Thank you,
Á