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.

How do I turn that off? How do I make sure my dots are colored for a categorical variable, without making two separate 'strips'?
Try stripmode='overlay' option. It should produce the following.
Data points overlayed:

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