manim.mobject.number_line.NumberLine

class NumberLine(color='#BBBBBB', unit_size=1, width=None, include_ticks=True, tick_size=0.1, tick_frequency=1, leftmost_tick=None, numbers_with_elongated_ticks=[0], include_numbers=False, numbers_to_show=None, longer_tick_multiple=2, number_at_center=0, number_scale_val=0.75, label_direction=array([0.0, - 1.0, 0.0]), line_to_number_buff=0.25, include_tip=False, tip_width=0.25, tip_height=0.25, add_start=0, add_end=0, decimal_number_config={'num_decimal_places': 0}, exclude_zero_from_default_numbers=False, x_min=- 7.111111111111111, x_max=7.111111111111111, **kwargs)[source]

Bases: manim.mobject.geometry.Line

Methods

add_numbers

add_tick_marks

default_numbers_to_display

get_labels

get_number_mobject

get_number_mobjects

get_tick

get_tick_marks

get_tick_numbers

get_unit_size

get_unit_vector

init_leftmost_tick

n2p

Abbreviation for number_to_point

number_to_point

p2n

Abbreviation for point_to_number

point_to_number

Attributes

animate

Used to animate the application of a method.

n2p(number)[source]

Abbreviation for number_to_point

p2n(point)[source]

Abbreviation for point_to_number