A community-maintained Python framework for creating mathematical animations.
fix 780 (#793)
Aron1084dc263e02
diff --git a/manim/mobject/coordinate_systems.py b/manim/mobject/coordinate_systems.pyindex a3a0279eb..e90d57381 100644--- a/manim/mobject/coordinate_systems.py+++ b/manim/mobject/coordinate_systems.py@@ -342,7 +342,7 @@ class NumberPlane(Axes):The axis with which the lines will be perpendicular.ratio_faded_lines : :class:`float`- The number of faded lines between each non-faded line.+ The ratio between the space between faded lines and the space between non-faded lines.freq : :class:`float`Frequency of non-faded lines (number of non-faded lines per graph unit).@@ -353,8 +353,9 @@ class NumberPlane(Axes):The first (i.e the non-faded lines parallel to `axis_parallel_to`) and second (i.e the faded lines parallel to `axis_parallel_to`) sets of lines, respectively."""line = Line(axis_parallel_to.get_start(), axis_parallel_to.get_end())- dense_freq = ratio_faded_lines- step = (1 / dense_freq) * freq+ if ratio_faded_lines == 0: # don't show faded lines+ ratio_faded_lines = 1 # i.e. set ratio to 1+ step = (1 / ratio_faded_lines) * freqlines1 = VGroup()lines2 = VGroup()unit_vector_axis_perp_to = axis_perpendicular_to.get_unit_vector()diff --git a/manim/scene/vector_space_scene.py b/manim/scene/vector_space_scene.pyindex 464062459..60fc34e4a 100644--- a/manim/scene/vector_space_scene.py+++ b/manim/scene/vector_space_scene.py@@ -546,7 +546,7 @@ class LinearTransformationScene(VectorScene):"x_min": -config["frame_width"] / 2,"y_max": config["frame_width"] / 2,"y_min": -config["frame_width"] / 2,- "faded_line_ratio": 0,+ "faded_line_ratio": 1,}def setup(self):