diff --git a/src/gc_content/gc_content.py b/src/gc_content/gc_content.py
index c517c4493b60f59e32e2a590821a00d96f07cbdf..35e025cf202b380efb48190e3dc3bdf74ae23879 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)