locan.visualize.colormap.Colormap#

class locan.visualize.colormap.Colormap(colormap)[source]#

Bases: object

Container class for colormaps.

A locan Colormap can be instantiated from other colormaps and serves as adapter class.

Methods

__init__(colormap)

from_colorcet(cls, colormap)

rtype:

TypeVar(T_Colormap, bound= Colormap)

from_matplotlib(colormap)

rtype:

TypeVar(T_Colormap, bound= Colormap)

from_napari(cls, colormap)

rtype:

TypeVar(T_Colormap, bound= Colormap)

from_registry(colormap)

rtype:

Colormap

Attributes

__call__(*args, **kwargs)[source]#

Call self as a function.

Return type:

float | tuple[float, float, float, float] | ndarray[Any, dtype[float64]]

classmethod from_colorcet(cls, colormap)[source]#
Return type:

TypeVar(T_Colormap, bound= Colormap)

classmethod from_matplotlib(colormap)[source]#
Return type:

TypeVar(T_Colormap, bound= Colormap)

classmethod from_napari(cls, colormap)[source]#
Return type:

TypeVar(T_Colormap, bound= Colormap)

classmethod from_registry(colormap)[source]#
Return type:

Colormap

property matplotlib: Colormap#
property name: str#
property napari: Colormap#