_triangulation.pyi 1017 B

123456789101112131415161718192021222324252627282930313233
  1. from matplotlib import _tri
  2. from matplotlib.tri._trifinder import TriFinder
  3. import numpy as np
  4. from numpy.typing import ArrayLike
  5. from typing import Any
  6. class Triangulation:
  7. x: np.ndarray
  8. y: np.ndarray
  9. mask: np.ndarray | None
  10. is_delaunay: bool
  11. triangles: np.ndarray
  12. def __init__(
  13. self,
  14. x: ArrayLike,
  15. y: ArrayLike,
  16. triangles: ArrayLike | None = ...,
  17. mask: ArrayLike | None = ...,
  18. ) -> None: ...
  19. def calculate_plane_coefficients(self, z: ArrayLike) -> np.ndarray: ...
  20. @property
  21. def edges(self) -> np.ndarray: ...
  22. def get_cpp_triangulation(self) -> _tri.Triangulation: ...
  23. def get_masked_triangles(self) -> np.ndarray: ...
  24. @staticmethod
  25. def get_from_args_and_kwargs(
  26. *args, **kwargs
  27. ) -> tuple[Triangulation, tuple[Any, ...], dict[str, Any]]: ...
  28. def get_trifinder(self) -> TriFinder: ...
  29. @property
  30. def neighbors(self) -> np.ndarray: ...
  31. def set_mask(self, mask: None | ArrayLike) -> None: ...