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

Code before:
        ``v`` respectively.

    Examples
    --------
    .. manim:: ParaSurface
        :save_last_frame:

        class ParaSurface(ThreeDScene):
            def func(self, u, v):
                return np.array([np.cos(u) * np.cos(v), np.cos(u) * np.sin(v), u])

            def construct(self):
                axes = ThreeDAxes(x_range=[-4,4], x_length=8)
                surface = ParametricSurface(
                    lambda u, v: axes.c2p(*self.func(u, v)),
                    u_range=[-PI, PI],
                    v_range=[0, TAU]
                )
                self.set_camera_orientation(theta=70 * DEGREES, phi=75 * DEGREES)
                self.add(axes, surface)
    """

    @deprecated_params(
        params="u_min,u_max,v_min,v_max",
        since="v0.8.0",
        until="v0.9.0",
        message="Use u_range and v_range instead.",
    )
    def __init__(
        self,
        func: Callable[[float, float], np.ndarray],
        u_range: Sequence[float] = [0, 1],
        v_range: Sequence[float] = [0, 1],
        resolution: Sequence[int] = 32,
        surface_piece_config: dict = {},
        fill_color: Color = BLUE_D,
        fill_opacity: float = 1.0,
        checkerboard_colors: Sequence[Color] = [BLUE_D, BLUE_E],
        stroke_color: Color = LIGHT_GREY,
        stroke_width: float = 0.5,
        should_make_jagged: bool = False,
        pre_function_handle_to_anchor_scale_factor: float = 0.00001,
        **kwargs
    ) -> None:
        self.u_min = kwargs.pop("u_min", None) or u_range[0]
        self.u_max = kwargs.pop("u_max", None) or u_range[1]
        self.v_min = kwargs.pop("v_min", None) or v_range[0]
        self.v_max = kwargs.pop("v_max", None) or v_range[1]
        VGroup.__init__(self, **kwargs)
        self.resolution = resolution
        self.surface_piece_config = surface_piece_config

Review comment (suggestion):
```suggestion
        since="v0.9.0",
        until="v0.10.0",
```

Code after:
        The number of samples taken of the surface. A tuple
        can be used to define different resolutions for ``u`` and
        ``v`` respectively.

    Examples
    --------
    .. manim:: ParaSurface
        :save_last_frame:

        class ParaSurface(ThreeDScene):
            def func(self, u, v):
                return np.array([np.cos(u) * np.cos(v), np.cos(u) * np.sin(v), u])

            def construct(self):
                axes = ThreeDAxes(x_range=[-4,4], x_length=8)
                surface = ParametricSurface(
                    lambda u, v: axes.c2p(*self.func(u, v)),
                    u_range=[-PI, PI],
                    v_range=[0, TAU]
                )
                self.set_camera_orientation(theta=70 * DEGREES, phi=75 * DEGREES)
                self.add(axes, surface)
    """

    @deprecated_params(
        params="u_min,u_max,v_min,v_max",
        since="v0.9.0",
        until="v0.10.0",
        message="Use u_range and v_range instead.",
    )
    def __init__(
        self,
        func: Callable[[float, float], np.ndarray],
        u_range: Sequence[float] = [0, 1],
        v_range: Sequence[float] = [0, 1],
        resolution: Sequence[int] = 32,
        surface_piece_config: dict = {},
        fill_color: "Color" = BLUE_D,
        fill_opacity: float = 1.0,
        checkerboard_colors: Sequence["Color"] = [BLUE_D, BLUE_E],
        stroke_color: "Color" = LIGHT_GREY,
        stroke_width: float = 0.5,
        should_make_jagged: bool = False,
        pre_function_handle_to_anchor_scale_factor: float = 0.00001,
        **kwargs
    ) -> None:
        self.u_min = kwargs.pop("u_min", None) or u_range[0]
        self.u_max = kwargs.pop("u_max", None) or u_range[1]
        self.v_min = kwargs.pop("v_min", None) or v_range[0]
        self.v_max = kwargs.pop("v_max", None) or v_range[1]
        super().__init__(**kwargs)