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

Code before:
            The label for the y_axis

        Returns
        -------
        :class:`~.VGroup`
            A :class:`~.Vgroup` of the labels for the x_axis and y_axis.

        See Also
        --------
        :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)

Review comment (suggestion):
Passing None will add the coordinates by default, depending on the range terms of that axis...
```suggestion
            The numbers to be added to the axes. Use ``None`` to represent an axis with default labels.
```

Code after:
            The label for the y_axis

        Returns
        -------
        :class:`~.VGroup`
            A :class:`~.Vgroup` of the labels for the x_axis and y_axis.

        See Also
        --------
        :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)