Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fixed minor bug (wrong number of faded lines)

Hugues Devimeuxb9b579366a68
diff --git a/manim/mobject/coordinate_systems.py b/manim/mobject/coordinate_systems.py
index 800e003fb..e4168d388 100644
--- a/manim/mobject/coordinate_systems.py
+++ b/manim/mobject/coordinate_systems.py
@@ -358,7 +358,7 @@ 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 = (1 + ratio_faded_lines)
+ dense_freq = ratio_faded_lines
step = (1 / dense_freq) * freq
lines1 = VGroup()
lines2 = VGroup()
@@ -371,7 +371,7 @@ class NumberPlane(Axes):
for k, x in enumerate(inputs):
new_line = line.copy()
new_line.shift(unit_vector_axis_perp_to * x)
- if k % (1 + ratio_faded_lines) == 0:
+ if k % ratio_faded_lines == 0:
lines1.add(new_line)
else:
lines2.add(new_line)