Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

added some more useful annotations

kolibril1398dfa2fd544d
diff --git a/docs/source/examples/annotations.rst b/docs/source/examples/annotations.rst
index 746d53166..24f745e7b 100644
--- a/docs/source/examples/annotations.rst
+++ b/docs/source/examples/annotations.rst
@@ -28,6 +28,23 @@ Annotations
tip_text = Text('(2, 2)').next_to(arrow.get_end(), RIGHT)
self.add(numberplane, dot, arrow, origin_text, tip_text)
+.. manim:: UsefulAnnotations
+ :quality: medium
+ :save_last_frame:
+
+ class UsefulAnnotations(Scene):
+ def construct(self):
+ m0 = SmallDot()
+ m1 = AnnotationDot()
+ m2 = LabeledDot("ii")
+ m3 = LabeledDot(MathTex(r"\alpha").set_color(ORANGE))
+ m4 = CurvedArrow(ORIGIN,2*LEFT)
+ m5 = CurvedDoubleArrow(ORIGIN,2*RIGHT)
+
+ self.add(m0,m1,m2,m3,m4,m5)
+ for i,mobj in enumerate(self.mobjects):
+ mobj.shift(DOWN*(i-3))
+
.. manim:: ArrowTipsShowcase
:quality: medium
:save_last_frame: