A community-maintained Python framework for creating mathematical animations.
Rename misleading function dot_position to update_label in .add_updater() example (#4196)
Irvanal Haqe4b1d105a331
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.pyindex f46679e75..855ccfa53 100644--- a/manim/mobject/mobject.py+++ b/manim/mobject/mobject.py@@ -1002,13 +1002,13 @@ class Mobject:class NextToUpdater(Scene):def construct(self):- def dot_position(mobject):+ def update_label(mobject):mobject.set_value(dot.get_center()[0])mobject.next_to(dot)dot = Dot(RIGHT*3)label = DecimalNumber()- label.add_updater(dot_position)+ label.add_updater(update_label)self.add(dot, label)self.play(Rotating(dot, about_point=ORIGIN, angle=TAU, run_time=TAU, rate_func=linear))