123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- import matplotlib.artist as martist
- import matplotlib.collections as mcollections
- from matplotlib.axes import Axes
- from matplotlib.figure import Figure
- from matplotlib.text import Text
- from matplotlib.transforms import Transform, Bbox
- import numpy as np
- from numpy.typing import ArrayLike
- from collections.abc import Sequence
- from typing import Any, Literal, overload
- from matplotlib.typing import ColorType
- class QuiverKey(martist.Artist):
- halign: dict[Literal["N", "S", "E", "W"], Literal["left", "center", "right"]]
- valign: dict[Literal["N", "S", "E", "W"], Literal["top", "center", "bottom"]]
- pivot: dict[Literal["N", "S", "E", "W"], Literal["middle", "tip", "tail"]]
- Q: Quiver
- X: float
- Y: float
- U: float
- angle: float
- coord: Literal["axes", "figure", "data", "inches"]
- color: ColorType | None
- label: str
- labelpos: Literal["N", "S", "E", "W"]
- labelcolor: ColorType | None
- fontproperties: dict[str, Any]
- kw: dict[str, Any]
- text: Text
- zorder: float
- def __init__(
- self,
- Q: Quiver,
- X: float,
- Y: float,
- U: float,
- label: str,
- *,
- angle: float = ...,
- coordinates: Literal["axes", "figure", "data", "inches"] = ...,
- color: ColorType | None = ...,
- labelsep: float = ...,
- labelpos: Literal["N", "S", "E", "W"] = ...,
- labelcolor: ColorType | None = ...,
- fontproperties: dict[str, Any] | None = ...,
- **kwargs
- ) -> None: ...
- @property
- def labelsep(self) -> float: ...
- def set_figure(self, fig: Figure) -> None: ...
- class Quiver(mcollections.PolyCollection):
- X: ArrayLike
- Y: ArrayLike
- XY: ArrayLike
- U: ArrayLike
- V: ArrayLike
- Umask: ArrayLike
- N: int
- scale: float | None
- headwidth: float
- headlength: float
- headaxislength: float
- minshaft: float
- minlength: float
- units: Literal["width", "height", "dots", "inches", "x", "y", "xy"]
- scale_units: Literal["width", "height", "dots", "inches", "x", "y", "xy"] | None
- angles: Literal["uv", "xy"] | ArrayLike
- width: float | None
- pivot: Literal["tail", "middle", "tip"]
- transform: Transform
- polykw: dict[str, Any]
- @overload
- def __init__(
- self,
- ax: Axes,
- U: ArrayLike,
- V: ArrayLike,
- C: ArrayLike = ...,
- *,
- scale: float | None = ...,
- headwidth: float = ...,
- headlength: float = ...,
- headaxislength: float = ...,
- minshaft: float = ...,
- minlength: float = ...,
- units: Literal["width", "height", "dots", "inches", "x", "y", "xy"] = ...,
- scale_units: Literal["width", "height", "dots", "inches", "x", "y", "xy"]
- | None = ...,
- angles: Literal["uv", "xy"] | ArrayLike = ...,
- width: float | None = ...,
- color: ColorType | Sequence[ColorType] = ...,
- pivot: Literal["tail", "mid", "middle", "tip"] = ...,
- **kwargs
- ) -> None: ...
- @overload
- def __init__(
- self,
- ax: Axes,
- X: ArrayLike,
- Y: ArrayLike,
- U: ArrayLike,
- V: ArrayLike,
- C: ArrayLike = ...,
- *,
- scale: float | None = ...,
- headwidth: float = ...,
- headlength: float = ...,
- headaxislength: float = ...,
- minshaft: float = ...,
- minlength: float = ...,
- units: Literal["width", "height", "dots", "inches", "x", "y", "xy"] = ...,
- scale_units: Literal["width", "height", "dots", "inches", "x", "y", "xy"]
- | None = ...,
- angles: Literal["uv", "xy"] | ArrayLike = ...,
- width: float | None = ...,
- color: ColorType | Sequence[ColorType] = ...,
- pivot: Literal["tail", "mid", "middle", "tip"] = ...,
- **kwargs
- ) -> None: ...
- def get_datalim(self, transData: Transform) -> Bbox: ...
- def set_UVC(
- self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ...
- ) -> None: ...
- @property
- def quiver_doc(self) -> str: ...
- class Barbs(mcollections.PolyCollection):
- sizes: dict[str, float]
- fill_empty: bool
- barb_increments: dict[str, float]
- rounding: bool
- flip: np.ndarray
- x: ArrayLike
- y: ArrayLike
- u: ArrayLike
- v: ArrayLike
- @overload
- def __init__(
- self,
- ax: Axes,
- U: ArrayLike,
- V: ArrayLike,
- C: ArrayLike = ...,
- *,
- pivot: str = ...,
- length: int = ...,
- barbcolor: ColorType | Sequence[ColorType] | None = ...,
- flagcolor: ColorType | Sequence[ColorType] | None = ...,
- sizes: dict[str, float] | None = ...,
- fill_empty: bool = ...,
- barb_increments: dict[str, float] | None = ...,
- rounding: bool = ...,
- flip_barb: bool | ArrayLike = ...,
- **kwargs
- ) -> None: ...
- @overload
- def __init__(
- self,
- ax: Axes,
- X: ArrayLike,
- Y: ArrayLike,
- U: ArrayLike,
- V: ArrayLike,
- C: ArrayLike = ...,
- *,
- pivot: str = ...,
- length: int = ...,
- barbcolor: ColorType | Sequence[ColorType] | None = ...,
- flagcolor: ColorType | Sequence[ColorType] | None = ...,
- sizes: dict[str, float] | None = ...,
- fill_empty: bool = ...,
- barb_increments: dict[str, float] | None = ...,
- rounding: bool = ...,
- flip_barb: bool | ArrayLike = ...,
- **kwargs
- ) -> None: ...
- def set_UVC(
- self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ...
- ) -> None: ...
- def set_offsets(self, xy: ArrayLike) -> None: ...
- @property
- def barbs_doc(self) -> str: ...
|