mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
NumberLine.default_numbers_to_display was not showing topmost number it should have
This commit is contained in:
parent
0a695dd442
commit
a3c1640fb7
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,10 @@ class NumberLine(Line):
|
||||||
def default_numbers_to_display(self):
|
def default_numbers_to_display(self):
|
||||||
if self.numbers_to_show is not None:
|
if self.numbers_to_show is not None:
|
||||||
return self.numbers_to_show
|
return self.numbers_to_show
|
||||||
numbers = np.arange(int(self.leftmost_tick), int(self.x_max))
|
numbers = np.arange(
|
||||||
|
np.floor(self.leftmost_tick),
|
||||||
|
np.ceil(self.x_max),
|
||||||
|
)
|
||||||
if self.exclude_zero_from_default_numbers:
|
if self.exclude_zero_from_default_numbers:
|
||||||
numbers = numbers[numbers != 0]
|
numbers = numbers[numbers != 0]
|
||||||
return numbers
|
return numbers
|
||||||
|
|
Loading…
Add table
Reference in a new issue