Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plotly strip plot: avoid spacing between colors in px.strip

The second example in https://plotly.com/python/strip-charts/ shows adding color (see screenshot below), but this automatically also creates spacing between the red and blue colored dots.

enter image description here

How do I turn that off? How do I make sure my dots are colored for a categorical variable, without making two separate 'strips'?

like image 572
Wouter De Coster Avatar asked Oct 28 '25 05:10

Wouter De Coster


1 Answers

Try stripmode='overlay' option. It should produce the following.

Data points overlayed:

enter image description here

like image 117
sejmodha Avatar answered Oct 29 '25 19:10

sejmodha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!