Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

A few doc changes (2)

Pg Biel0e1c71e3cd57
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index 52be20bed..350d0c106 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -1139,12 +1139,12 @@ class Mobject(Container):
return self
def set_z_index_by_z_coordinate(self):
- """Set mobject's z coordinate to the value of z_index
+ """Sets the mobject's z coordinate to the value of :attr:`z_index`.
Returns
-------
:class:`Mobject`
- The mobject object after setting z_index
+ The Mobject itself, after :attr:`z_index` is set. (Returns `self`.)
"""
z_coord = self.get_center()[-1]
self.set_z_index(z_coord)