From 566b5be4883e628273b5d680c0cf4641381623f6 Mon Sep 17 00:00:00 2001 From: sswatson Date: Wed, 21 Nov 2018 08:44:48 -0500 Subject: [PATCH] Update matrix.py the numpy astype method seems to want the argument 'str' rather than 'string' --- mobject/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobject/matrix.py b/mobject/matrix.py index aa5659cf..75d3f3c0 100644 --- a/mobject/matrix.py +++ b/mobject/matrix.py @@ -16,7 +16,7 @@ VECTOR_LABEL_SCALE_FACTOR = 0.8 def matrix_to_tex_string(matrix): - matrix = np.array(matrix).astype("string") + matrix = np.array(matrix).astype("str") if matrix.ndim == 1: matrix = matrix.reshape((matrix.size, 1)) n_rows, n_cols = matrix.shape