MathTable#
Qualified name: manim.mobject.table.MathTable
- class MathTable(table, element_to_mobject=<class 'manim.mobject.text.tex_mobject.MathTex'>, **kwargs)[source]#
Bases:
Table
A specialized
Table
mobject for use with LaTeX.Examples
Example: MathTableExample ¶
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 toMathTex
. Every entry in table is set in a Latex align environment.- Parameters
table (Iterable[Iterable[float | str]]) – A 2d array or list of lists. Content of the table have to be valid input for
MathTex
.element_to_mobject (Callable[[float | str], VMobject]) – The
Mobject
class applied to the table entries. Set asMathTex
.kwargs – Additional arguments to be passed to
Table
.
Methods
Attributes
animate
Used to animate the application of any method of
self
.animation_overrides
color
depth
The depth of the mobject.
fill_color
If there are multiple colors (for gradient) this returns the first one
height
The height of the mobject.
n_points_per_curve
sheen_factor
stroke_color
width
The width of the mobject.