IntegerTable#
Qualified name: manim.mobject.table.IntegerTable
- class IntegerTable(table, element_to_mobject=<class 'manim.mobject.text.numbers.Integer'>, **kwargs)[source]#
Bases:
TableA specialized
Tablemobject for use withInteger.Examples
Example: IntegerTableExample ¶
from manim import * class IntegerTableExample(Scene): def construct(self): t0 = IntegerTable( [[0,30,45,60,90], [90,60,45,30,0]], col_labels=[ MathTex("\\frac{\sqrt{0}}{2}"), MathTex("\\frac{\sqrt{1}}{2}"), MathTex("\\frac{\sqrt{2}}{2}"), MathTex("\\frac{\sqrt{3}}{2}"), MathTex("\\frac{\sqrt{4}}{2}")], row_labels=[MathTex("\sin"), MathTex("\cos")], h_buff=1, element_to_mobject_config={"unit": "^{\circ}"}) self.add(t0)
Special case of
Tablewith element_to_mobject set toInteger. Will round if there are decimal entries in the table.- Parameters
table (Iterable[Iterable[float | str]]) – A 2d array or list of lists. Content of the table has to be valid input for
Integer.element_to_mobject (Callable[[float | str], VMobject]) – The
Mobjectclass applied to the table entries. Set asInteger.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.