swarmplot

How to add a mean line to a seaborn stripplot or swarmplot

How to add a mean line to a seaborn stripplot or swarmplot Question: I have a rather simple strip plot with vertical data. planets = sns.load_dataset("planets") sns.stripplot(x="method", y="distance", data=planets, size=4, color=".7") plt.xticks(rotation=45, ha="right") plt.show() I want to plot the mean of each x-element (method) as a small horizontal bar similar to what you get with: …

Total answers: 3

How can box plot be overlaid on top of swarm plot in Seaborn?

How can box plot be overlaid on top of swarm plot in Seaborn? Question: I am trying to plot swarm plots and box plots together using matplotlib and Seaborn. I found how to plot them together but the box plot appears underneath the swarm plot. The problem with this is that the swarm plot points …

Total answers: 3