hatch.pyi 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. from matplotlib.path import Path
  2. import numpy as np
  3. from numpy.typing import ArrayLike
  4. class HatchPatternBase: ...
  5. class HorizontalHatch(HatchPatternBase):
  6. num_lines: int
  7. num_vertices: int
  8. def __init__(self, hatch: str, density: int) -> None: ...
  9. def set_vertices_and_codes(self, vertices: ArrayLike, codes: ArrayLike) -> None: ...
  10. class VerticalHatch(HatchPatternBase):
  11. num_lines: int
  12. num_vertices: int
  13. def __init__(self, hatch: str, density: int) -> None: ...
  14. def set_vertices_and_codes(self, vertices: ArrayLike, codes: ArrayLike) -> None: ...
  15. class NorthEastHatch(HatchPatternBase):
  16. num_lines: int
  17. num_vertices: int
  18. def __init__(self, hatch: str, density: int) -> None: ...
  19. def set_vertices_and_codes(self, vertices: ArrayLike, codes: ArrayLike) -> None: ...
  20. class SouthEastHatch(HatchPatternBase):
  21. num_lines: int
  22. num_vertices: int
  23. def __init__(self, hatch: str, density: int) -> None: ...
  24. def set_vertices_and_codes(self, vertices: ArrayLike, codes: ArrayLike) -> None: ...
  25. class Shapes(HatchPatternBase):
  26. filled: bool
  27. num_shapes: int
  28. num_vertices: int
  29. def __init__(self, hatch: str, density: int) -> None: ...
  30. def set_vertices_and_codes(self, vertices: ArrayLike, codes: ArrayLike) -> None: ...
  31. class Circles(Shapes):
  32. shape_vertices: np.ndarray
  33. shape_codes: np.ndarray
  34. def __init__(self, hatch: str, density: int) -> None: ...
  35. class SmallCircles(Circles):
  36. size: float
  37. num_rows: int
  38. def __init__(self, hatch: str, density: int) -> None: ...
  39. class LargeCircles(Circles):
  40. size: float
  41. num_rows: int
  42. def __init__(self, hatch: str, density: int) -> None: ...
  43. class SmallFilledCircles(Circles):
  44. size: float
  45. filled: bool
  46. num_rows: int
  47. def __init__(self, hatch: str, density: int) -> None: ...
  48. class Stars(Shapes):
  49. size: float
  50. filled: bool
  51. num_rows: int
  52. shape_vertices: np.ndarray
  53. shape_codes: np.ndarray
  54. def __init__(self, hatch: str, density: int) -> None: ...
  55. def get_path(hatchpattern: str, density: int = ...) -> Path: ...