Repository: ManimCommunity/manim
File: manim/scene/graph_scene.py (Python)

Code before:

        axes = []
        if self.x_axis_visibility:
            axes.append(x_axis)
        if self.y_axis_visibility:
            axes.append(y_axis)

        if animate:
            self.play(Write(VGroup(*axes)))
        else:
            self.add(*axes)
        self.x_axis, self.y_axis = self.axes = VGroup(x_axis, y_axis)
        self.default_graph_colors = it.cycle(self.default_graph_colors)

    def coords_to_point(self, x, y):
        """The graph is smaller than the scene.

        Because of this, coordinates in the graph don't map
        to coordinates on the scene.

        This method returns a scaled coordinate for the scene,
        given coordinates that correspond to the graph.

        Parameters
        ----------
        x : int, float
            The x coordinate of the graph.

        y : int, float
            The y coordinate of the graph.

        Returns
        -------
        np.ndarray
            The array of the coordinates on the scene.

        Examples
        --------

        .. manim:: SequencePlot
            :save_last_frame:

            class SequencePlot(GraphScene):
                def __init__(self, **kwargs):
                    GraphScene.__init__(
                        self,
                        y_axis_label=r"Concentration [\%]",
                        x_axis_label="Time [s]",
                        **kwargs
                    )


Review comment (suggestion):
I know this isn't something you have written, but while this PR touches this method, we may as well improve the rest of the class/method. Please read our [documentation guidelines](https://github.com/ManimCommunity/manim/wiki/Documentation-guidelines-(WIP)#types).
```suggestion
        x : :class:`float`
```

Code after:

        axes = []
        if self.x_axis_visibility:
            axes.append(x_axis)
        if self.y_axis_visibility:
            axes.append(y_axis)

        if animate:
            self.play(Write(VGroup(*axes)))
        else:
            self.add(*axes)
        self.x_axis, self.y_axis = self.axes = VGroup(x_axis, y_axis)
        self.default_graph_colors = it.cycle(self.default_graph_colors)

    def coords_to_point(self, x, y):
        """Maps a pair of coordinates (with respect to the axes)
        to a point in the scene.

        The graph is smaller than the scene. Because of this, coordinates
        in the graph don't map to coordinates on the scene.

        This method returns a scaled coordinate for the scene,
        given coordinates that correspond to the graph.

        Parameters
        ----------
        x : :class:`float`
            The x coordinate with respect to the graph.

        y : :class:`float`
            The y coordinate with respect to the graph.

        Returns
        -------
        :class:`numpy.ndarray`
            Coordinates of a point in the scene.

        Examples
        --------

        .. manim:: SequencePlot
            :save_last_frame:

            class SequencePlot(GraphScene):
                def __init__(self, **kwargs):
                    GraphScene.__init__(
                        self,
                        y_axis_label=r"Concentration [\%]",
                        x_axis_label="Time [s]",
                        **kwargs
                    )