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

Code before:

        t_max : :class:`float`
            The upper bound of x until which the area must be approximated.

        Returns
        -------
        :class:`~.VGroup`
            The :class:`~.VGroup` containing the Riemann Rectangles.
        """
        numerator = max(t_max - t_min, 0.0001)
        dx = float(numerator) / self.num_rects
        return (
            self.get_riemann_rectangles(
                graph,
                x_min=t_min,
                x_max=t_max,
                dx=dx * dx_scaling,
                stroke_width=0,
                bounded_graph=bounded,
            )
            .set_fill(opacity=0.3)
            .set_color(area_color)
        )

    def transform_between_riemann_rects(self, curr_rects, new_rects, **kwargs):
        """This method is used to transform between two VGroups of Riemann Rectangles,
        if they were obtained by get_riemann_rectangles or get_riemann_rectangles_list.
        No animation is returned, and the animation is directly played.

        Parameters
        ----------
        curr_rects : :class:`~.VGroup`
            The current Riemann Rectangles

        new_rects : :class:`~.VGroup`
            The Riemann Rectangles to transform to.

        **kwargs

        Other Parameters
        ----------------
        added_anims : :class:`~.Animation`
            Any other animations to play simultaneously.
            
        """
        transform_kwargs = {"run_time": 2, "lag_ratio": 0.5}
        added_anims = kwargs.get("added_anims", [])
        transform_kwargs.update(kwargs)
        curr_rects.align_submobjects(new_rects)
        x_coords = set()  # Keep track of new repetitions
        for rect in curr_rects:

Review comment (suggestion):
```suggestion
        """Transform between groups of Riemann Rectangles.

        This method is used to transform between two VGroups of Riemann Rectangles,
```

Code after:
            The graph/curve for which the area needs to be gotten.

        t_min : :class:`float`
            The lower bound of x from which to approximate the area.

        t_max : :class:`float`
            The upper bound of x until which the area must be approximated.

        Returns
        -------
        :class:`~.VGroup`
            The :class:`~.VGroup` containing the Riemann Rectangles.
        """
        numerator = max(t_max - t_min, 0.0001)
        dx = float(numerator) / self.num_rects
        return (
            self.get_riemann_rectangles(
                graph,
                x_min=t_min,
                x_max=t_max,
                dx=dx * dx_scaling,
                stroke_width=0,
                bounded_graph=bounded,
            )
            .set_fill(opacity=0.3)
            .set_color(area_color)
        )

    def transform_between_riemann_rects(self, curr_rects, new_rects, **kwargs):
        """Transform between groups of Riemann Rectangles.

        This method is used to transform between two VGroups of Riemann Rectangles,
        if they were obtained by get_riemann_rectangles or get_riemann_rectangles_list.
        No animation is returned, and the animation is directly played.

        Parameters
        ----------
        curr_rects : :class:`~.VGroup`
            The current Riemann Rectangles

        new_rects : :class:`~.VGroup`
            The Riemann Rectangles to transform to.

        **kwargs

        Other Parameters
        ----------------
        added_anims : :class:`~.Animation`
            Any other animations to play simultaneously.

        """