3
votes

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'?

1
Possible duplicate/related post: stackoverflow.com/q/65645424/680068 - zx8754

1 Answers

4
votes

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

Data points overlayed:

enter image description here