From 397729a79da2679daaa2a10b10e89c3434621200 Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Mon, 15 Mar 2021 18:18:54 +0100 Subject: [PATCH] src/gc_content/gc_content.py: modfication of add_stat_annotation calls in make_gc_barplot --- src/gc_content/gc_content.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gc_content/gc_content.py b/src/gc_content/gc_content.py index c517c44..35e025c 100644 --- a/src/gc_content/gc_content.py +++ b/src/gc_content/gc_content.py @@ -154,18 +154,20 @@ def make_gc_barplot(df: pd.DataFrame, outfile: Path, environment: int, add_stat_annotation(g.ax, data=df, x="location", y="gc_content", hue="region", loc='inside', - boxPairList=p_vals, - linewidth=2, fontsize="medium", - lineYOffsetAxesCoord=0, - lineYOffsetToBoxAxesCoord=0.1) + box_pair_list=p_vals, + linewidth=2, fontsize="xx-small", + liney_offset_axes_coord=0.02, + liney_offset2box_axes_coord=0.02, + line_height_axes_coord=0) else: g = sns.catplot(x="region", y="gc_content", data=df, aspect=1.77, height=12, kind="violin") add_stat_annotation(g.ax, data=df, x="region", y="gc_content", loc='inside', - boxPairList=p_vals, - linewidth=2, fontsize="medium", - lineYOffsetToBoxAxesCoord=0.1) + box_pair_list=p_vals, + linewidth=2, fontsize="xx-small", + liney_offset2box_axes_coord=0.1, + line_height_axes_coord=0) g.set_ylabels("GC content") g.set_xlabels("") g.fig.subplots_adjust(top=0.9) -- GitLab