Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Update manim/mobject/coordinate_systems.py

Laith Bahodi768fddde74e7
diff --git a/manim/mobject/coordinate_systems.py b/manim/mobject/coordinate_systems.py
index 59668a552..aac569a42 100644
--- a/manim/mobject/coordinate_systems.py
+++ b/manim/mobject/coordinate_systems.py
@@ -362,8 +362,9 @@ class Axes(VGroup, CoordinateSystem):
return line_graph
- def origin_shift(self, axis_range: List[float]):
- """Shifts graph mobjects to compensate when 0 is not on the axis.
+ @staticmethod
+ def origin_shift(axis_range: List[float]) -> float:
+ """Determines how to shift graph mobjects to compensate when 0 is not on the axis.
Parameters
----------