From 83ca18f96fbdc53e417affe46416abc2a7a7f81f Mon Sep 17 00:00:00 2001 From: "gael.pongnot" Date: Tue, 26 Jul 2022 18:04:29 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20signe=20d=C3=A9phasage=20vecteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MLI_vectorielle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MLI_vectorielle.py b/MLI_vectorielle.py index d602283..26d29cb 100644 --- a/MLI_vectorielle.py +++ b/MLI_vectorielle.py @@ -104,7 +104,7 @@ class MLI_plot: self.vectorgraph_arrow = [self.ax[1].arrow(0, 0, 0, self.v_max, lw=2, head_width=0.05, head_length=self.v_max/15, color="C"+str(i), length_includes_head=True, - transform=(mpl.transforms.Affine2D().translate((self.phi+i*120)*PI/180, 0) + transform=(mpl.transforms.Affine2D().translate((self.phi-i*120)*PI/180, 0) +self.ax[1].transData) ) for i in range(3)] @@ -134,7 +134,7 @@ class MLI_plot: for i, arrow in enumerate(self.vectorgraph_arrow): arrow.set_data(dy=self.v_max) - arrow.set_transform(mpl.transforms.Affine2D().translate((self.phi+i*120)*PI/180, 0) + arrow.set_transform(mpl.transforms.Affine2D().translate((self.phi-i*120)*PI/180, 0) +self.ax[1].transData) return