MathTable

Qualified name: manim.mobject.table.MathTable

class MathTable(table, element_to_mobject=<class 'manim.mobject.svg.tex_mobject.MathTex'>, **kwargs)[source]

Bases: manim.mobject.table.Table

A specialized Table mobject for use with with LaTeX.

Examples

Example: MathTableExample

../_images/MathTableExample-1.png
from manim import *

class MathTableExample(Scene):
    def construct(self):
        t0 = MathTable(
            [["+", 0, 5, 10],
            [0, 0, 5, 10],
            [2, 2, 7, 12],
            [4, 4, 9, 14]],
            include_outer_lines=True)
        self.add(t0)

Special case of Table with element_to_mobject set to MathTex. Every entry in table is set in a Latex align environment.

Parameters
  • table (Iterable[Iterable[Union[float, str]]]) – A 2d array or list of lists. Content of the table have to be valid input for MathTex.

  • element_to_mobject (Callable[[Union[float, str]], VMobject]) – The Mobject class applied to the table entries. Set as MathTex.

  • kwargs (Any) – Additional arguments to be passed to Table.

Methods

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.