Skip to content

The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.

Python
289 B
Raw Blame
# Source: manim/mobject/graphing/  (Prompt 11 port)
import manimgx as m


class NumberLineAddLabelsExample(m.Scene):
    def construct(self):
        nl = m.NumberLine(x_range=(-3, 3, 1))
        nl.add_labels({-2: "a", 0: "b", 2: "c"})
        self.add(nl, nl.labels)
        self.wait()