A community-maintained Python framework for creating mathematical animations.
Added short documentation for new methods
Philipp Imhof9bb1c66e4f8b
diff --git a/manimlib/mobject/matrix.py b/manimlib/mobject/matrix.pyindex 13e2d1e74..f7625bf87 100644--- a/manimlib/mobject/matrix.py+++ b/manimlib/mobject/matrix.py@@ -128,12 +128,18 @@ class Matrix(VMobject):return selfdef get_rows(self):+ """+ Return rows of the matrix as VGroups+ """return VGroup(*[VGroup(*self.mob_matrix[i, :])for i in range(self.mob_matrix.shape[1])])def set_row_colors(self, *colors):+ """+ Set individual colors for each row of the matrix+ """rows = self.get_rows()for color, row in zip(colors, rows):row.set_color(color)