在 seaborn 中创建海盗图(箱形图和点图的组合)

create pirate plot in seaborn (combination of box and point plot)

R中有一个很好的情节叫做海盗情节。它是箱线图和点图的结合。我如何使用 seaborn 在 python 中绘制类似的东西? 你可以在这里找到一个例子:http://rpubs.com/yarrr/pirateplot

这是我能想到的最接近盗版的情节了。同时使用 seaborn boxplotstripplot.

sns.set_style("whitegrid")
tips = sns.load_dataset("tips")
ax = sns.boxplot(x="day", y="total_bill", data=tips)
ax = sns.stripplot(x="day", y="total_bill", data=tips, color=".25")

生成此图表。