A community-maintained Python framework for creating mathematical animations.
Added Complex Plane Example for documentation (#1641)
Iced-Tea354a8a6ddc044
diff --git a/manim/mobject/coordinate_systems.py b/manim/mobject/coordinate_systems.pyindex cc6959ae4..6352e0cee 100644--- a/manim/mobject/coordinate_systems.py+++ b/manim/mobject/coordinate_systems.py@@ -2048,6 +2048,31 @@ class PolarPlane(Axes):class ComplexPlane(NumberPlane):+ """+ Examples+ --------++ .. manim:: ComplexPlaneExample+ :save_last_frame:+ :ref_classes: Dot MathTex++ class ComplexPlaneExample(Scene):+ def construct(self):+ plane = ComplexPlane().add_coordinates()+ self.add(plane)+ d1 = Dot(plane.n2p(2 + 1j), color=YELLOW)+ d2 = Dot(plane.n2p(-3 - 2j), color=YELLOW)+ label1 = MathTex("2+i").next_to(d1, UR, 0.1)+ label2 = MathTex("-3-2i").next_to(d2, UR, 0.1)+ self.add(+ d1,+ label1,+ d2,+ label2,+ )++ """+def __init__(self, color=BLUE, **kwargs):super().__init__(color=color,