From 740b7a558e3d7a4f7df5dcef55607d69b2a143cd Mon Sep 17 00:00:00 2001 From: Arthur Talpaert Date: Wed, 7 Jun 2023 16:46:29 +0400 Subject: [PATCH] Update _streamline.py to avoid np.matrix avoid using np.matrix as it is not supported anymore by numpy, it was raising an error --- .../python/plotly/plotly/figure_factory/_streamline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()