Skip to content

Commit e84b58e

Browse files
authored
Merge pull request #1 from ArthurTlprt/ArthurTlprt-patch-1
Update _streamline.py to avoid np.matrix
2 parents 216fca2 + 740b7a5 commit e84b58e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: packages/python/plotly/plotly/figure_factory/_streamline.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@ def get_streamline_arrows(self):
381381
space = np.empty((len(point1_x)))
382382
space[:] = np.nan
383383

384-
# Combine arrays into matrix
385-
arrows_x = np.matrix([point1_x, arrow_end_x, point2_x, space])
384+
# Combine arrays into array
385+
arrows_x = np.array([point1_x, arrow_end_x, point2_x, space])
386386
arrows_x = np.array(arrows_x)
387387
arrows_x = arrows_x.flatten("F")
388388
arrows_x = arrows_x.tolist()
389389

390-
# Combine arrays into matrix
391-
arrows_y = np.matrix([point1_y, arrow_end_y, point2_y, space])
390+
# Combine arrays into array
391+
arrows_y = np.array([point1_y, arrow_end_y, point2_y, space])
392392
arrows_y = np.array(arrows_y)
393393
arrows_y = arrows_y.flatten("F")
394394
arrows_y = arrows_y.tolist()

0 commit comments

Comments
 (0)