c2p || NumberPlane

from manim import *

class SpeedExample(Scene):

def construct(self):

dot = Dot(color=YELLOW)

cordinatesystems = NumberPlane(

x_length=10,

y_length=10,

x_range=[-10, 10, 1],

y_range=[-10, 10, 1],

axis_config={"color": WHITE},

);

NumberPlane.add_coordinates(cordinatesystems)

self.add(cordinatesystems)

self.play(Create(dot))

self.play(dot.animate.shift(cordinatesystems.c2p(2, 3)))

self.play(dot.animate.shift(cordinatesystems.c2p(2, 0)))

self.play(dot.animate.shift(cordinatesystems.c2p(-6, -3)),run_time = 3)

# self.wait(1)

self.remove(dot, cordinatesystems)

self.wait(1)

Grid = Axes(

x_length=10,

y_length=10,

x_range=[-10, 10, 1],

y_range=[-10, 10, 1],

axis_config={"color": WHITE},

);

dot = Dot(color=YELLOW)

self.add(Grid)

self.play(Create(dot))

self.play(dot.animate.shift(Grid.c2p(2, 3)))

self.play(dot.animate.shift(Grid.c2p(-2, -3)))

self.wait(1)

get_graph_label || get_T_label || get_area