manim.mobject.coordinate_systems.NumberPlane

class NumberPlane(axis_config=None, y_axis_config=None, background_line_style=None, faded_line_style=None, x_line_frequency=1, y_line_frequency=1, faded_line_ratio=1, make_smooth_after_applying_functions=True, **kwargs)[source]

Bases: manim.mobject.coordinate_systems.Axes

Methods

get_axes

get_center_point

get_lines

Generate all the lines, faded and not faded.

get_lines_parallel_to_axis

Generate a set of lines parallel to an axis.

get_vector

get_x_unit_size

get_y_unit_size

init_background_lines

Will init all the lines of NumberPlanes (faded or not)

prepare_for_nonlinear_transform

Attributes

animate

Used to animate the application of a method.

depth

The depth of the mobject.

height

The height of the mobject.

width

The width of the mobject.

get_lines()[source]

Generate all the lines, faded and not faded. Two sets of lines are generated: one parallel to the X-axis, and parallel to the Y-axis.

Returns

The first (i.e the non faded lines) and second (i.e the faded lines) sets of lines, respectively.

Return type

Tuple[VGroup, VGroup]

get_lines_parallel_to_axis(axis_parallel_to, axis_perpendicular_to, freq, ratio_faded_lines)[source]

Generate a set of lines parallel to an axis.

Parameters
  • axis_parallel_to (Line) – The axis with which the lines will be parallel.

  • axis_perpendicular_to (Line) – The axis with which the lines will be perpendicular.

  • ratio_faded_lines (float) – The ratio between the space between faded lines and the space between non-faded lines.

  • freq (float) – Frequency of non-faded lines (number of non-faded lines per graph unit).

Returns

The first (i.e the non-faded lines parallel to axis_parallel_to) and second (i.e the faded lines parallel to axis_parallel_to) sets of lines, respectively.

Return type

Tuple[VGroup, VGroup]

init_background_lines()[source]

Will init all the lines of NumberPlanes (faded or not)