Unable to use 'x' and '+' markers in Seaborn stripplot

Viewed 442

I am trying to use seaborn.stripplot() to do categorical plots as shown below using the reproducible code:

import seaborn as sns

df = sns.load_dataset('iris')

sns.stripplot(data = df,
              x="species", y="sepal_length", 
              color = 'red',jitter=False,zorder=3, marker='X')

enter image description here

But when I use 'x' or '+' or '_' and other non-filled markers as a marker it is returning nothing, why so?

1 Answers

stripplot() is weird with non-filled markers. There is something going on with the linewidths of the markers. You can get them to appear if you pass linewidth=1, but note that if you use linewidths with an "s", that does not work.

sns.stripplot(data = df,
              x="species", y="sepal_length", 
              color='red', jitter=False, marker='x', linewidth=1)

enter image description here

Related