AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/matplotlib/tri/_trirefine.pyi

32 lines
1.0 KiB
Python
Raw Normal View History

2024-10-02 22:15:59 +04:00
from typing import Literal, overload
import numpy as np
from numpy.typing import ArrayLike
from matplotlib.tri._triangulation import Triangulation
from matplotlib.tri._triinterpolate import TriInterpolator
class TriRefiner:
def __init__(self, triangulation: Triangulation) -> None: ...
class UniformTriRefiner(TriRefiner):
def __init__(self, triangulation: Triangulation) -> None: ...
@overload
def refine_triangulation(
self, *, return_tri_index: Literal[True], subdiv: int = ...
) -> tuple[Triangulation, np.ndarray]: ...
@overload
def refine_triangulation(
self, return_tri_index: Literal[False] = ..., subdiv: int = ...
) -> Triangulation: ...
@overload
def refine_triangulation(
self, return_tri_index: bool = ..., subdiv: int = ...
) -> tuple[Triangulation, np.ndarray] | Triangulation: ...
def refine_field(
self,
z: ArrayLike,
triinterpolator: TriInterpolator | None = ...,
subdiv: int = ...,
) -> tuple[Triangulation, np.ndarray]: ...