I've created a raincloud plot using the following code:
#Rainplot
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')
I'm wondering if there is a way to have the box plot overlap with the distribution blob.
https://stackoverflow.com/questions/67376683/can-you-have-a-box-plot-overlap-a-half-violin-plot-on-a-raincloud-plot-using-pyt May 04, 2021 at 06:44AM
没有评论:
发表评论