Skip to content

Commit

Permalink
Merge pull request #1 from ArthurTlprt/ArthurTlprt-patch-1
Browse files Browse the repository at this point in the history
Update _streamline.py to avoid np.matrix
  • Loading branch information
ArthurTlprt authored Jun 7, 2023
2 parents 216fca2 + 740b7a5 commit e84b58e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/python/plotly/plotly/figure_factory/_streamline.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,14 @@ 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])
# Combine arrays into array
arrows_x = np.array([point1_x, arrow_end_x, point2_x, space])
arrows_x = np.array(arrows_x)
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])
# Combine arrays into array
arrows_y = np.array([point1_y, arrow_end_y, point2_y, space])
arrows_y = np.array(arrows_y)
arrows_y = arrows_y.flatten("F")
arrows_y = arrows_y.tolist()
Expand Down

0 comments on commit e84b58e

Please sign in to comment.