Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed issue with numberline last tick vs. arrow conflict

Grant Sanderson6b59cdcd3747
diff --git a/manimlib/mobject/number_line.py b/manimlib/mobject/number_line.py
index df372e3eb..365cecccf 100644
--- a/manimlib/mobject/number_line.py
+++ b/manimlib/mobject/number_line.py
@@ -95,9 +95,10 @@ class NumberLine(Line):
)
def get_tick_numbers(self):
+ u = -1 if self.include_tip else 1
return np.arange(
self.leftmost_tick,
- self.x_max + self.tick_frequency / 2,
+ self.x_max + u * self.tick_frequency / 2,
self.tick_frequency
)