manim.mobject.number_line.NumberLineOld

class NumberLineOld(color='#BBBBBB', unit_size=1, width=None, rotation=0, 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., - 1., 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

The old version of NumberLine.

Exists for compatibility with GraphScene.

Deprecated

The class NumberLineOld has been deprecated since v0.7.0 and is expected to be removed after v0.9.0. Use NumberLine instead. NumberLineOld will be removed alongside GraphScene

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

rotate_about_number

rotate_about_zero

Attributes

animate

Used to animate the application of a method.

animation_overrides

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.

n2p(number)[source]

Abbreviation for number_to_point

p2n(point)[source]

Abbreviation for point_to_number