diff --git a/packages/python/plotly/plotly/figure_factory/_streamline.py b/packages/python/plotly/plotly/figure_factory/_streamline.py index 108b20c5d3..c1d181a89e 100644 --- a/packages/python/plotly/plotly/figure_factory/_streamline.py +++ b/packages/python/plotly/plotly/figure_factory/_streamline.py @@ -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()