Skip to content

Commit c3b0fda

Browse files
authored
Merge pull request #4233 from ArthurTlprt/master
Simple change to correct bug in streamline figure factory plot
2 parents 2d055a4 + 6aae637 commit c3b0fda

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

+4-6
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,13 @@ 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])
386-
arrows_x = np.array(arrows_x)
384+
# Combine arrays into array
385+
arrows_x = np.array([point1_x, arrow_end_x, point2_x, space])
387386
arrows_x = arrows_x.flatten("F")
388387
arrows_x = arrows_x.tolist()
389388

390-
# Combine arrays into matrix
391-
arrows_y = np.matrix([point1_y, arrow_end_y, point2_y, space])
392-
arrows_y = np.array(arrows_y)
389+
# Combine arrays into array
390+
arrows_y = np.array([point1_y, arrow_end_y, point2_y, space])
393391
arrows_y = arrows_y.flatten("F")
394392
arrows_y = arrows_y.tolist()
395393

0 commit comments

Comments
 (0)