Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Remove :meth:`~.CoordinateSystem.get_graph` usage from :class:`~.Axes` example. (#2342)

Darylgolden7191e1c24e4f
diff --git a/manim/mobject/coordinate_systems.py b/manim/mobject/coordinate_systems.py
index 155fb8eb4..8bb52f610 100644
--- a/manim/mobject/coordinate_systems.py
+++ b/manim/mobject/coordinate_systems.py
@@ -1737,7 +1737,7 @@ class Axes(VGroup, CoordinateSystem, metaclass=ConvertToOpenGL):
)
# x_min must be > 0 because log is undefined at 0.
- graph = ax.get_graph(lambda x: x ** 2, x_range=[0.001, 10], use_smoothing=False)
+ graph = ax.plot(lambda x: x ** 2, x_range=[0.001, 10], use_smoothing=False)
self.add(ax, graph)
Parameters