Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
17
typings/matplotlib/tri/__init__.pyi
Normal file
17
typings/matplotlib/tri/__init__.pyi
Normal file
|
@ -0,0 +1,17 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from ._triangulation import Triangulation
|
||||
from ._tricontour import TriContourSet, tricontour, tricontourf
|
||||
from ._trifinder import TrapezoidMapTriFinder, TriFinder
|
||||
from ._triinterpolate import CubicTriInterpolator, LinearTriInterpolator, TriInterpolator
|
||||
from ._tripcolor import tripcolor
|
||||
from ._triplot import triplot
|
||||
from ._trirefine import TriRefiner, UniformTriRefiner
|
||||
from ._tritools import TriAnalyzer
|
||||
|
||||
"""
|
||||
Unstructured triangular grid functions.
|
||||
"""
|
||||
__all__ = ["Triangulation", "TriContourSet", "tricontour", "tricontourf", "TriFinder", "TrapezoidMapTriFinder", "TriInterpolator", "LinearTriInterpolator", "CubicTriInterpolator", "tripcolor", "triplot", "TriRefiner", "UniformTriRefiner", "TriAnalyzer"]
|
48
typings/matplotlib/tri/_triangulation.pyi
Normal file
48
typings/matplotlib/tri/_triangulation.pyi
Normal file
|
@ -0,0 +1,48 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
from matplotlib import _tri
|
||||
from matplotlib.tri._trifinder import TriFinder
|
||||
from numpy.typing import ArrayLike
|
||||
from typing import Any
|
||||
|
||||
class Triangulation:
|
||||
x: np.ndarray
|
||||
y: np.ndarray
|
||||
mask: np.ndarray | None
|
||||
is_delaunay: bool
|
||||
triangles: np.ndarray
|
||||
def __init__(self, x: ArrayLike, y: ArrayLike, triangles: ArrayLike | None = ..., mask: ArrayLike | None = ...) -> None:
|
||||
...
|
||||
|
||||
def calculate_plane_coefficients(self, z: ArrayLike) -> np.ndarray:
|
||||
...
|
||||
|
||||
@property
|
||||
def edges(self) -> np.ndarray:
|
||||
...
|
||||
|
||||
def get_cpp_triangulation(self) -> _tri.Triangulation:
|
||||
...
|
||||
|
||||
def get_masked_triangles(self) -> np.ndarray:
|
||||
...
|
||||
|
||||
@staticmethod
|
||||
def get_from_args_and_kwargs(*args, **kwargs) -> tuple[Triangulation, tuple[Any, ...], dict[str, Any]]:
|
||||
...
|
||||
|
||||
def get_trifinder(self) -> TriFinder:
|
||||
...
|
||||
|
||||
@property
|
||||
def neighbors(self) -> np.ndarray:
|
||||
...
|
||||
|
||||
def set_mask(self, mask: None | ArrayLike) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
32
typings/matplotlib/tri/_tricontour.pyi
Normal file
32
typings/matplotlib/tri/_tricontour.pyi
Normal file
|
@ -0,0 +1,32 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.contour import ContourSet
|
||||
from matplotlib.tri._triangulation import Triangulation
|
||||
from numpy.typing import ArrayLike
|
||||
from typing import overload
|
||||
|
||||
class TriContourSet(ContourSet):
|
||||
def __init__(self, ax: Axes, *args, **kwargs) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
@overload
|
||||
def tricontour(ax: Axes, triangulation: Triangulation, z: ArrayLike, levels: int | ArrayLike = ..., **kwargs) -> TriContourSet:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tricontour(ax: Axes, x: ArrayLike, y: ArrayLike, z: ArrayLike, levels: int | ArrayLike = ..., *, triangles: ArrayLike = ..., mask: ArrayLike = ..., **kwargs) -> TriContourSet:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tricontourf(ax: Axes, triangulation: Triangulation, z: ArrayLike, levels: int | ArrayLike = ..., **kwargs) -> TriContourSet:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tricontourf(ax: Axes, x: ArrayLike, y: ArrayLike, z: ArrayLike, levels: int | ArrayLike = ..., *, triangles: ArrayLike = ..., mask: ArrayLike = ..., **kwargs) -> TriContourSet:
|
||||
...
|
||||
|
25
typings/matplotlib/tri/_trifinder.pyi
Normal file
25
typings/matplotlib/tri/_trifinder.pyi
Normal file
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from matplotlib.tri import Triangulation
|
||||
from numpy.typing import ArrayLike
|
||||
|
||||
class TriFinder:
|
||||
def __init__(self, triangulation: Triangulation) -> None:
|
||||
...
|
||||
|
||||
def __call__(self, x: ArrayLike, y: ArrayLike) -> ArrayLike:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class TrapezoidMapTriFinder(TriFinder):
|
||||
def __init__(self, triangulation: Triangulation) -> None:
|
||||
...
|
||||
|
||||
def __call__(self, x: ArrayLike, y: ArrayLike) -> ArrayLike:
|
||||
...
|
||||
|
||||
|
||||
|
31
typings/matplotlib/tri/_triinterpolate.pyi
Normal file
31
typings/matplotlib/tri/_triinterpolate.pyi
Normal file
|
@ -0,0 +1,31 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
from matplotlib.tri import TriFinder, Triangulation
|
||||
from typing import Literal
|
||||
from numpy.typing import ArrayLike
|
||||
|
||||
class TriInterpolator:
|
||||
def __init__(self, triangulation: Triangulation, z: ArrayLike, trifinder: TriFinder | None = ...) -> None:
|
||||
...
|
||||
|
||||
def __call__(self, x: ArrayLike, y: ArrayLike) -> np.ma.MaskedArray:
|
||||
...
|
||||
|
||||
def gradient(self, x: ArrayLike, y: ArrayLike) -> tuple[np.ma.MaskedArray, np.ma.MaskedArray]:
|
||||
...
|
||||
|
||||
|
||||
|
||||
class LinearTriInterpolator(TriInterpolator):
|
||||
...
|
||||
|
||||
|
||||
class CubicTriInterpolator(TriInterpolator):
|
||||
def __init__(self, triangulation: Triangulation, z: ArrayLike, kind: Literal["min_E", "geom", "user"] = ..., trifinder: TriFinder | None = ..., dz: tuple[ArrayLike, ArrayLike] | None = ...) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
27
typings/matplotlib/tri/_tripcolor.pyi
Normal file
27
typings/matplotlib/tri/_tripcolor.pyi
Normal file
|
@ -0,0 +1,27 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.collections import PolyCollection, TriMesh
|
||||
from matplotlib.colors import Colormap, Normalize
|
||||
from matplotlib.tri._triangulation import Triangulation
|
||||
from numpy.typing import ArrayLike
|
||||
from typing import Literal, overload
|
||||
|
||||
@overload
|
||||
def tripcolor(ax: Axes, triangulation: Triangulation, c: ArrayLike = ..., *, alpha: float = ..., norm: str | Normalize | None = ..., cmap: str | Colormap | None = ..., vmin: float | None = ..., vmax: float | None = ..., shading: Literal["flat"] = ..., facecolors: ArrayLike | None = ..., **kwargs) -> PolyCollection:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tripcolor(ax: Axes, x: ArrayLike, y: ArrayLike, c: ArrayLike = ..., *, alpha: float = ..., norm: str | Normalize | None = ..., cmap: str | Colormap | None = ..., vmin: float | None = ..., vmax: float | None = ..., shading: Literal["flat"] = ..., facecolors: ArrayLike | None = ..., **kwargs) -> PolyCollection:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tripcolor(ax: Axes, triangulation: Triangulation, c: ArrayLike = ..., *, alpha: float = ..., norm: str | Normalize | None = ..., cmap: str | Colormap | None = ..., vmin: float | None = ..., vmax: float | None = ..., shading: Literal["gouraud"], facecolors: ArrayLike | None = ..., **kwargs) -> TriMesh:
|
||||
...
|
||||
|
||||
@overload
|
||||
def tripcolor(ax: Axes, x: ArrayLike, y: ArrayLike, c: ArrayLike = ..., *, alpha: float = ..., norm: str | Normalize | None = ..., cmap: str | Colormap | None = ..., vmin: float | None = ..., vmax: float | None = ..., shading: Literal["gouraud"], facecolors: ArrayLike | None = ..., **kwargs) -> TriMesh:
|
||||
...
|
||||
|
18
typings/matplotlib/tri/_triplot.pyi
Normal file
18
typings/matplotlib/tri/_triplot.pyi
Normal file
|
@ -0,0 +1,18 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from matplotlib.tri._triangulation import Triangulation
|
||||
from matplotlib.axes import Axes
|
||||
from matplotlib.lines import Line2D
|
||||
from typing import overload
|
||||
from numpy.typing import ArrayLike
|
||||
|
||||
@overload
|
||||
def triplot(ax: Axes, triangulation: Triangulation, *args, **kwargs) -> tuple[Line2D, Line2D]:
|
||||
...
|
||||
|
||||
@overload
|
||||
def triplot(ax: Axes, x: ArrayLike, y: ArrayLike, triangles: ArrayLike = ..., *args, **kwargs) -> tuple[Line2D, Line2D]:
|
||||
...
|
||||
|
37
typings/matplotlib/tri/_trirefine.pyi
Normal file
37
typings/matplotlib/tri/_trirefine.pyi
Normal file
|
@ -0,0 +1,37 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
from typing import Literal, overload
|
||||
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]:
|
||||
...
|
||||
|
||||
|
||||
|
23
typings/matplotlib/tri/_tritools.pyi
Normal file
23
typings/matplotlib/tri/_tritools.pyi
Normal file
|
@ -0,0 +1,23 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
from matplotlib.tri import Triangulation
|
||||
|
||||
class TriAnalyzer:
|
||||
def __init__(self, triangulation: Triangulation) -> None:
|
||||
...
|
||||
|
||||
@property
|
||||
def scale_factors(self) -> tuple[float, float]:
|
||||
...
|
||||
|
||||
def circle_ratios(self, rescale: bool = ...) -> np.ndarray:
|
||||
...
|
||||
|
||||
def get_flat_tri_mask(self, min_circle_ratio: float = ..., rescale: bool = ...) -> np.ndarray:
|
||||
...
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue