_tricontour.pyi 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. from matplotlib.axes import Axes
  2. from matplotlib.contour import ContourSet
  3. from matplotlib.tri._triangulation import Triangulation
  4. from numpy.typing import ArrayLike
  5. from typing import overload
  6. # TODO: more explicit args/kwargs (for all things in this module)?
  7. class TriContourSet(ContourSet):
  8. def __init__(self, ax: Axes, *args, **kwargs) -> None: ...
  9. @overload
  10. def tricontour(
  11. ax: Axes,
  12. triangulation: Triangulation,
  13. z: ArrayLike,
  14. levels: int | ArrayLike = ...,
  15. **kwargs
  16. ) -> TriContourSet: ...
  17. @overload
  18. def tricontour(
  19. ax: Axes,
  20. x: ArrayLike,
  21. y: ArrayLike,
  22. z: ArrayLike,
  23. levels: int | ArrayLike = ...,
  24. *,
  25. triangles: ArrayLike = ...,
  26. mask: ArrayLike = ...,
  27. **kwargs
  28. ) -> TriContourSet: ...
  29. @overload
  30. def tricontourf(
  31. ax: Axes,
  32. triangulation: Triangulation,
  33. z: ArrayLike,
  34. levels: int | ArrayLike = ...,
  35. **kwargs
  36. ) -> TriContourSet: ...
  37. @overload
  38. def tricontourf(
  39. ax: Axes,
  40. x: ArrayLike,
  41. y: ArrayLike,
  42. z: ArrayLike,
  43. levels: int | ArrayLike = ...,
  44. *,
  45. triangles: ArrayLike = ...,
  46. mask: ArrayLike = ...,
  47. **kwargs
  48. ) -> TriContourSet: ...