From 939f5231c1cb8d8aefc2c32cdf843c94ab9bcb13 Mon Sep 17 00:00:00 2001 From: lucafs Date: Thu, 2 Dec 2021 20:05:40 -0300 Subject: [PATCH] fixing #3490 issue --- packages/python/plotly/plotly/figure_factory/_quiver.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/python/plotly/plotly/figure_factory/_quiver.py b/packages/python/plotly/plotly/figure_factory/_quiver.py index f40df33d451..a04b2e72149 100644 --- a/packages/python/plotly/plotly/figure_factory/_quiver.py +++ b/packages/python/plotly/plotly/figure_factory/_quiver.py @@ -254,11 +254,10 @@ def get_quiver_arrows(self): seg2_y = [i * j for i, j in zip(arrow_len, sin_ang2)] # Set coordinates to create arrow - for index in range(len(self.end_x)): - point1_x = [i - j * self.scaleratio for i, j in zip(self.end_x, seg1_x)] - point1_y = [i - j for i, j in zip(self.end_y, seg1_y)] - point2_x = [i - j * self.scaleratio for i, j in zip(self.end_x, seg2_x)] - point2_y = [i - j for i, j in zip(self.end_y, seg2_y)] + point1_x = [i - j * self.scaleratio for i, j in zip(self.end_x, seg1_x)] + point1_y = [i - j for i, j in zip(self.end_y, seg1_y)] + point2_x = [i - j * self.scaleratio for i, j in zip(self.end_x, seg2_x)] + point2_y = [i - j for i, j in zip(self.end_y, seg2_y)] # Combine lists to create arrow empty = [None] * len(self.end_x)