Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Return matrix rows correctly

Abhijith Muthyala6eac82ccbe34
diff --git a/manim/mobject/matrix.py b/manim/mobject/matrix.py
index d6e4a7ed1..becff30aa 100644
--- a/manim/mobject/matrix.py
+++ b/manim/mobject/matrix.py
@@ -144,7 +144,7 @@ class Matrix(VMobject):
Each VGroup contains a row of the matrix.
"""
return VGroup(
- *[VGroup(*self.mob_matrix[i, :]) for i in range(self.mob_matrix.shape[1])]
+ *[VGroup(*self.mob_matrix[i, :]) for i in range(self.mob_matrix.shape[0])]
)
def set_row_colors(self, *colors):