Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

scales x&y before calling ImplicitFunction() (#3195)

JinchuLi2002479e7b62e6c2
diff --git a/manim/mobject/graphing/coordinate_systems.py b/manim/mobject/graphing/coordinate_systems.py
index 0873a976e..46eda68db 100644
--- a/manim/mobject/graphing/coordinate_systems.py
+++ b/manim/mobject/graphing/coordinate_systems.py
@@ -715,8 +715,10 @@ class CoordinateSystem:
)
self.add(ax, a)
"""
+ x_scale = self.get_x_axis().scaling
+ y_scale = self.get_y_axis().scaling
graph = ImplicitFunction(
- func=func,
+ func=(lambda x, y: func(x_scale.function(x), y_scale.function(y))),
x_range=self.x_range[:2],
y_range=self.y_range[:2],
min_depth=min_depth,