Skip to content

Commit

Permalink
Merge pull request #4233 from ArthurTlprt/master
Browse files Browse the repository at this point in the history
Simple change to correct bug in streamline figure factory plot
  • Loading branch information
alexcjohnson authored Jun 8, 2023
2 parents 2d055a4 + 6aae637 commit c3b0fda
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/python/plotly/plotly/figure_factory/_streamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,13 @@ def get_streamline_arrows(self):
space = np.empty((len(point1_x)))
space[:] = np.nan

# Combine arrays into matrix
arrows_x = np.matrix([point1_x, arrow_end_x, point2_x, space])
arrows_x = np.array(arrows_x)
# Combine arrays into array
arrows_x = np.array([point1_x, arrow_end_x, point2_x, space])
arrows_x = arrows_x.flatten("F")
arrows_x = arrows_x.tolist()

# Combine arrays into matrix
arrows_y = np.matrix([point1_y, arrow_end_y, point2_y, space])
arrows_y = np.array(arrows_y)
# Combine arrays into array
arrows_y = np.array([point1_y, arrow_end_y, point2_y, space])
arrows_y = arrows_y.flatten("F")
arrows_y = arrows_y.tolist()

Expand Down

0 comments on commit c3b0fda

Please sign in to comment.