Repository: ManimCommunity/manim
File: manim/mobject/coordinate_systems.py (Python)

Code before:
    --------

    .. manim:: NumberPlaneExample
        :ref_classes: NumberPlane
        :save_last_frame:

        class NumberPlaneExample(Scene):
            def construct(self):
                number_plane = NumberPlane(
                x_range = [-10,10,1],
                y_range = [-10,10,1],
                axis_config = {
                    "stroke_color": WHITE,
                    "stroke_width": 2,
                    "include_ticks": False,
                    "include_tip": False,
                    "line_to_number_buff": SMALL_BUFF,
                    "label_direction": DR,
                    "number_scale_value": 0.5,
                },
                background_line_style={
                    "stroke_color": RED_D,
                    "stroke_width": 2,
                    "stroke_opacity": .7,
                })
                self.add(number_plane)

    """

    def __init__(
        self,
        x_range: Optional[Sequence[float]] = (
            -config["frame_x_radius"],
            config["frame_x_radius"],
            1,
        ),
        y_range: Optional[Sequence[float]] = (
            -config["frame_y_radius"],
            config["frame_y_radius"],
            1,
        ),
        x_length: Optional[float] = None,
        y_length: Optional[float] = None,
        axis_config: Optional[dict] = None,
        y_axis_config: Optional[dict] = None,
        background_line_style: Optional[dict] = None,
        faded_line_style: Optional[dict] = None,
        faded_line_ratio: Optional[float] = 1,
        make_smooth_after_applying_functions=True,
        **kwargs,
    ):

Review comment (suggestion):
Apply black formatting
```suggestion
        class NumberPlaneExample(Scene):
            def construct(self):
                number_plane = NumberPlane(
                    x_range=[-10, 10, 1],
                    y_range=[-10, 10, 1],
                    axis_config={
                        "stroke_color": WHITE,
                        "stroke_width": 2,
                        "include_ticks": False,
                        "include_tip": False,
                        "line_to_number_buff": SMALL_BUFF,
                        "label_direction": DR,
                        "number_scale_value": 0.5,
                    },
                    background_line_style={
                        "stroke_color": RED_D,
                        "stroke_width": 2,
                        "stroke_opacity": 0.7,
                    },
                )
                self.add(number_plane)
```

Code after:
    .. note:: If :attr:`x_length` or :attr:`y_length` are not defined, the plane automatically adjusts its lengths based
        on the :attr:`x_range` and :attr:`y_range` values to set the unit_size to 1.

    Examples
    --------

    .. manim:: NumberPlaneExample
        :save_last_frame:

        class NumberPlaneExample(Scene):
            def construct(self):
                number_plane = NumberPlane(
                    x_range=[-10, 10, 1],
                    y_range=[-10, 10, 1],
                    background_line_style={
                        "stroke_color": TEAL,
                        "stroke_width": 4,
                        "stroke_opacity": 0.6
                    }
                )
                self.add(number_plane)
    """

    def __init__(
        self,
        x_range: Optional[Sequence[float]] = (
            -config["frame_x_radius"],
            config["frame_x_radius"],
            1,
        ),
        y_range: Optional[Sequence[float]] = (
            -config["frame_y_radius"],
            config["frame_y_radius"],
            1,
        ),
        x_length: Optional[float] = None,
        y_length: Optional[float] = None,
        axis_config: Optional[dict] = None,
        y_axis_config: Optional[dict] = None,
        background_line_style: Optional[dict] = None,
        faded_line_style: Optional[dict] = None,
        faded_line_ratio: Optional[float] = 1,
        make_smooth_after_applying_functions=True,
        **kwargs,
    ):

        # configs
        self.axis_config = {
            "stroke_color": WHITE,
            "stroke_width": 2,
            "include_ticks": False,