_triplot.pyi 446 B

123456789101112131415
  1. from matplotlib.tri._triangulation import Triangulation
  2. from matplotlib.axes import Axes
  3. from matplotlib.lines import Line2D
  4. from typing import overload
  5. from numpy.typing import ArrayLike
  6. @overload
  7. def triplot(
  8. ax: Axes, triangulation: Triangulation, *args, **kwargs
  9. ) -> tuple[Line2D, Line2D]: ...
  10. @overload
  11. def triplot(
  12. ax: Axes, x: ArrayLike, y: ArrayLike, triangles: ArrayLike = ..., *args, **kwargs
  13. ) -> tuple[Line2D, Line2D]: ...