def horizontal_violin_plot(data, ordered_genomes, title, xlabel, pdf, hue=None, x=None, y=None, xlim=None):
"""not so generic function that specifically produces a paired boxplot/violinplot"""
fig, ax = plt.subplots()
sns.violinplot(data=data, x=x, y=y, hue=hue, order=ordered_genomes, palette=choose_palette(ordered_genomes),
saturation=boxplot_saturation, orient='h', cut=0, scale='count', ax=ax)
fig.suptitle(title)
ax.set_xlabel(xlabel)
if xlim is not None:
ax.set_xlim(xlim)
multipage_close(pdf, tight_layout=False)
plots.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录