Skip to content

Commit

Permalink
Fix: .to_edge()'s example demonstration in docs (#3958)
Browse files Browse the repository at this point in the history
* ToEdgeExample's circle is added to the scene

* Made it consistent to the surrounding code

---------

Co-authored-by: Aarush Deshpande <110117391+JasonGrace2282@users.noreply.github.com>
  • Loading branch information
DuskyElf and JasonGrace2282 authored Oct 19, 2024
1 parent 75a7525 commit 0cdfd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manim/mobject/mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ def construct(self):
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)
Expand Down

0 comments on commit 0cdfd4b

Please sign in to comment.