Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add last tick to number line

Grant Sanderson27200f79d33b
diff --git a/manimlib/mobject/number_line.py b/manimlib/mobject/number_line.py
index cf5d1e92c..8128193aa 100644
--- a/manimlib/mobject/number_line.py
+++ b/manimlib/mobject/number_line.py
@@ -97,7 +97,7 @@ class NumberLine(Line):
def get_tick_numbers(self):
return np.arange(
self.leftmost_tick,
- self.x_max - self.tick_frequency / 2,
+ self.x_max + self.tick_frequency / 2,
self.tick_frequency
)