From 46f815e6c0ffff19d352f32dcdae6ac076d33578 Mon Sep 17 00:00:00 2001 From: Guillaume VIGNAL Date: Thu, 13 Jan 2022 16:46:38 +0100 Subject: [PATCH] Bug fix : matplotlib 5.3.1 --- shapash/explainer/consistency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shapash/explainer/consistency.py b/shapash/explainer/consistency.py index ea997d35..d36600e3 100644 --- a/shapash/explainer/consistency.py +++ b/shapash/explainer/consistency.py @@ -396,7 +396,7 @@ def draw_arrow(self, ax, a, b, dst): Distance between the methods """ ax.annotate( - s="", + "", xy=a - 0.05 * (a - b), xycoords="data", xytext=b + 0.05 * (a - b), @@ -404,7 +404,7 @@ def draw_arrow(self, ax, a, b, dst): arrowprops=dict(arrowstyle="<->"), ) ax.annotate( - s="%.2f" % dst, + "%.2f" % dst, xy=(0.5 * (a[0] + b[0]), 0.5 * (a[1] + b[1])), xycoords="data", textcoords="data",