A community-maintained Python framework for creating mathematical animations.
Fix deprecation warning from numpy (#3179)
Fredrik Lundström92b01ebbc603
diff --git a/manim/mobject/graphing/functions.py b/manim/mobject/graphing/functions.pyindex c1f053d73..970ddb0ce 100644--- a/manim/mobject/graphing/functions.py+++ b/manim/mobject/graphing/functions.py@@ -158,7 +158,7 @@ class ParametricFunction(VMobject, metaclass=ConvertToOpenGL):x, y, z = self.function(t_range)if not isinstance(z, np.ndarray):z = np.zeros_like(x)- points = np.stack(zip(x, y, z), axis=0)+ points = np.stack([x, y, z], axis=1)else:points = np.array([self.function(t) for t in t_range])