数学表格¶
限定名称: manim.mobject.table.MathTable
- class MathTable(table, element_to_mobject=<class 'manim.mobject.text.tex_mobject.MathTex'>, **kwargs)[来源]¶
基础类:
Table
一个专门用于LaTeX的
Table
mobject。示例
示例: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)
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)
Table
的特殊情况,其中element_to_mobject设置为MathTex
。 table中的每个条目都设置在Latex的align环境中。- Parameters:
方法
属性
animate
用于动画化
self
的任何方法的应用。animation_overrides
color
depth
mobject的深度。
fill_color
如果有多种颜色(用于渐变),则返回第一个颜色
height
mobject的高度。
n_points_per_curve
sheen_factor
stroke_color
width
mobject的宽度。