This commit is contained in:
2026-05-06 19:47:31 +07:00
parent 94d8682530
commit 12dbb7731b
9963 changed files with 2747894 additions and 0 deletions
@@ -0,0 +1,24 @@
from collections.abc import Iterator, Mapping
from matplotlib import colors
from matplotlib.colorizer import _ScalarMappable
class ColormapRegistry(Mapping[str, colors.Colormap]):
def __init__(self, cmaps: Mapping[str, colors.Colormap]) -> None: ...
def __getitem__(self, item: str) -> colors.Colormap: ...
def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ...
def __call__(self) -> list[str]: ...
def register(
self, cmap: colors.Colormap, *, name: str | None = ..., force: bool = ...
) -> None: ...
def unregister(self, name: str) -> None: ...
def get_cmap(self, cmap: str | colors.Colormap) -> colors.Colormap: ...
_colormaps: ColormapRegistry = ...
_multivar_colormaps: ColormapRegistry = ...
_bivar_colormaps: ColormapRegistry = ...
def get_cmap(name: str | colors.Colormap | None = ..., lut: int | None = ...) -> colors.Colormap: ...
ScalarMappable = _ScalarMappable