from manim import *
class MatrixDemo(LinearTransformationScene):
    def __init__(self):
        super().__init__(show_coordinates=True, leave_ghost_vectors=True)
    def construct(self):
        title = Text("LinearTransformationScene：矩阵变换网格", font="STLiti", font_size=26).to_edge(UP)
        self.add(title)
        self.apply_matrix([[2, 1], [0, 1]])
        self.wait(3.4)
