matplotlib.typing#

matplotlib.typing.RGBColorType = tuple[float, float, float] | str#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.RGBColourType = tuple[float, float, float] | str#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.RGBAColorType = str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.RGBAColourType = str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.ColorType = tuple[float, float, float] | str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.ColourType = tuple[float, float, float] | str | tuple[float, float, float, float] | tuple[tuple[float, float, float] | str, float] | tuple[tuple[float, float, float, float], float]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.LineStyleType = str | tuple[float, collections.abc.Sequence[float]]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.DrawStyleType#

别名 Literal['default', 'steps', 'steps-pre', 'steps-mid', 'steps-post']

matplotlib.typing.MarkEveryType = None | int | tuple[int, int] | slice | list[int] | float | tuple[float, float] | list[bool]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.FillStyleType#

别名 Literal['full', 'left', 'right', 'bottom', 'top', 'none']

matplotlib.typing.CapStyleType#

别名 CapStyle | Literal['butt', 'projecting', 'round']

matplotlib.typing.JoinStyleType#

别名 JoinStyle | Literal['miter', 'round', 'bevel']

matplotlib.typing.RcStyleType = str | dict[str, typing.Any] | pathlib._local.Path | collections.abc.Sequence[str | pathlib._local.Path | dict[str, typing.Any]]#

表示 PEP 604 联合类型

例如,对于 int | str

matplotlib.typing.HashableList(iterable=(), /)#

可哈希值的嵌套列表。

别名 list[_HT | HashableList[_HT]]