MathTable#
Qualified name: manim.mobject.table.MathTable
- class MathTable(table, element_to_mobject=<class 'manim.mobject.text.tex_mobject.MathTex'>, **kwargs)[source]#
Bases:
TableA specialized
Tablemobject 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
Tablewith 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
Mobjectclass applied to the table entries. Set asMathTex.kwargs – Additional arguments to be passed to
Table.
Methods
Attributes
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.