Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix: `.to_edge()`'s example demonstration in docs (#3958)

Rehmatpal Singh0cdfd4b304f6
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index 1fed8a60e..cf8a11310 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -1498,7 +1498,7 @@ class Mobject:
tex_top.to_edge(UP)
tex_side = Tex("I am moving to the side!")
c = Circle().shift(2*DOWN)
- self.add(tex_top, tex_side)
+ self.add(tex_top, tex_side, c)
tex_side.to_edge(LEFT)
c.to_edge(RIGHT, buff=0)