mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update matrix.py
the numpy astype method seems to want the argument 'str' rather than 'string'
This commit is contained in:
parent
d12e45aa17
commit
566b5be488
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue