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

Code before:
        :class:`get_x_axis_label`
        :class:`get_y_axis_label`
        """

        self.axis_labels = VGroup(
            self.get_x_axis_label(x_label),
            self.get_y_axis_label(y_label),
        )
        return self.axis_labels

    def add_coordinates(
        self, *axes_numbers: Optional[Iterable[float]], **kwargs
    ) -> VGroup:
        """Adds labels to the axes.

        axes_numbers
            The the numbers to be added to the axes. Use ``None`` to represent an axis without labels.

        Examples
        --------

        .. code-block:: python

            ax = ThreeDAxes()
            x_labels = range(1, 11)
            z_labels = range(2, 12, 2)
            ax.add_coordinates(x_labels, None, z_labels)  # x & z labels
            ax.add_coordinates(x_labels)  # only x labels

        Returns
        -------
        VGroup
            A :class:`VGroup` of the number mobjects.
        """

        self.coordinate_labels = VGroup()
        # if nothing is passed to axes_numbers, produce axes with default labelling
        if not axes_numbers:
            axes_numbers = [None for x in self.axes]

        for axis, values in zip(self.axes, axes_numbers):
            labels = axis.add_numbers(values, **kwargs)
            self.coordinate_labels.add(labels)

        return self.coordinate_labels

    def get_line_from_axis_to_point(
        self,
        index: int,
        point: Sequence[float],
        line_func: Line = DashedLine,

Review comment (suggestion):
Since the default x,y,z ranges of `ThreeDAxes` are (-6, 6, 1), (-5, 5, 1) and (-4, 4, 1) respectively, I think it would be better to have these ranges within the axes's ranges. 
```suggestion
            x_labels = range(-4, 5)
            z_labels = range(-4, 4, 2)
```

Code after:
        :class:`get_x_axis_label`
        :class:`get_y_axis_label`
        """

        self.axis_labels = VGroup(
            self.get_x_axis_label(x_label),
            self.get_y_axis_label(y_label),
        )
        return self.axis_labels

    def add_coordinates(
        self, *axes_numbers: Optional[Iterable[float]], **kwargs
    ) -> VGroup:
        """Adds labels to the axes.

        axes_numbers
            The numbers to be added to the axes. Use ``None`` to represent an axis with default labels.

        Examples
        --------

        .. code-block:: python

            ax = ThreeDAxes()
            x_labels = range(-4, 5)
            z_labels = range(-4, 4, 2)
            ax.add_coordinates(x_labels, None, z_labels)  # default y labels, custom x & z labels
            ax.add_coordinates(x_labels)  # only x labels

        Returns
        -------
        VGroup
            A :class:`VGroup` of the number mobjects.
        """

        self.coordinate_labels = VGroup()
        # if nothing is passed to axes_numbers, produce axes with default labelling
        if not axes_numbers:
            axes_numbers = [None for _ in range(self.dimension)]

        for axis, values in zip(self.axes, axes_numbers):
            labels = axis.add_numbers(values, **kwargs)
            self.coordinate_labels.add(labels)

        return self.coordinate_labels

    def get_line_from_axis_to_point(
        self,
        index: int,
        point: Sequence[float],
        line_func: Line = DashedLine,