我使用以下代码创建了一个雨云图:
#雨点图
dx = 'Time Point'; dy = 'Score'; ort = "v"; pal = "Set2"; sigma = .2;
f, ax = plt.subplots(figsize=(7, 5))
pt.RainCloud(x = dx, y = dy, data = df, palette = pal, bw = sigma,
width_viol = .9, ax= ax, orient = ort, move = .2)
plt.title("")
plt.ylabel('Score', fontsize = 20)
plt.xlabel('', fontsize = 20)
plt.grid(color = 'w')
if savefigs:
plt.savefig('/Users/zeidanlab/Desktop/gv/rainplots/figure_tsc.png', bbox_inches='tight')
我想知道是否有办法使方框图与分布图重叠
下面是一种将半小提琴图、箱线图和条纹图结合起来的方法
半小提琴是通过提取其边界框并使用其一半来剪裁小提琴而创建的
移动条纹图的点以避免重叠
这里是另一个例子,在垂直方向上
相关问题 更多 >
编程相关推荐