Correction signe déphasage vecteur

main
Gaël Pongnot 2 years ago
parent 300ddadaa9
commit 83ca18f96f
  1. 4
      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

Loading…
Cancel
Save