123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- from collections.abc import Iterable, Sequence
- from typing import Any
- from matplotlib.backend_bases import RendererBase, GraphicsContextBase
- from matplotlib.path import Path
- from matplotlib.patches import Patch
- from matplotlib.transforms import Transform
- from matplotlib.typing import ColorType
- class AbstractPathEffect:
- def __init__(self, offset: tuple[float, float] = ...) -> None: ...
- def draw_path(
- self,
- renderer: RendererBase,
- gc: GraphicsContextBase,
- tpath: Path,
- affine: Transform,
- rgbFace: ColorType | None = ...,
- ) -> None: ...
- class PathEffectRenderer(RendererBase):
- def __init__(
- self, path_effects: Iterable[AbstractPathEffect], renderer: RendererBase
- ) -> None: ...
- def copy_with_path_effect(self, path_effects: Iterable[AbstractPathEffect]) -> PathEffectRenderer: ...
- def draw_path(
- self,
- gc: GraphicsContextBase,
- tpath: Path,
- affine: Transform,
- rgbFace: ColorType | None = ...,
- ) -> None: ...
- def draw_markers(
- self,
- gc: GraphicsContextBase,
- marker_path: Path,
- marker_trans: Transform,
- path: Path,
- *args,
- **kwargs
- ) -> None: ...
- def draw_path_collection(
- self,
- gc: GraphicsContextBase,
- master_transform: Transform,
- paths: Sequence[Path],
- *args,
- **kwargs
- ) -> None: ...
- def __getattribute__(self, name: str) -> Any: ...
- class Normal(AbstractPathEffect): ...
- class Stroke(AbstractPathEffect):
- def __init__(self, offset: tuple[float, float] = ..., **kwargs) -> None: ...
- # rgbFace becomes non-optional
- def draw_path(self, renderer: RendererBase, gc: GraphicsContextBase, tpath: Path, affine: Transform, rgbFace: ColorType) -> None: ... # type: ignore
- class withStroke(Stroke): ...
- class SimplePatchShadow(AbstractPathEffect):
- def __init__(
- self,
- offset: tuple[float, float] = ...,
- shadow_rgbFace: ColorType | None = ...,
- alpha: float | None = ...,
- rho: float = ...,
- **kwargs
- ) -> None: ...
- # rgbFace becomes non-optional
- def draw_path(self, renderer: RendererBase, gc: GraphicsContextBase, tpath: Path, affine: Transform, rgbFace: ColorType) -> None: ... # type: ignore
- class withSimplePatchShadow(SimplePatchShadow): ...
- class SimpleLineShadow(AbstractPathEffect):
- def __init__(
- self,
- offset: tuple[float, float] = ...,
- shadow_color: ColorType = ...,
- alpha: float = ...,
- rho: float = ...,
- **kwargs
- ) -> None: ...
- # rgbFace becomes non-optional
- def draw_path(self, renderer: RendererBase, gc: GraphicsContextBase, tpath: Path, affine: Transform, rgbFace: ColorType) -> None: ... # type: ignore
- class PathPatchEffect(AbstractPathEffect):
- patch: Patch
- def __init__(self, offset: tuple[float, float] = ..., **kwargs) -> None: ...
- # rgbFace becomes non-optional
- def draw_path(self, renderer: RendererBase, gc: GraphicsContextBase, tpath: Path, affine: Transform, rgbFace: ColorType) -> None: ... # type: ignore
- class TickedStroke(AbstractPathEffect):
- def __init__(
- self,
- offset: tuple[float, float] = ...,
- spacing: float = ...,
- angle: float = ...,
- length: float = ...,
- **kwargs
- ) -> None: ...
- # rgbFace becomes non-optional
- def draw_path(self, renderer: RendererBase, gc: GraphicsContextBase, tpath: Path, affine: Transform, rgbFace: ColorType) -> None: ... # type: ignore
- class withTickedStroke(TickedStroke): ...
|