access.util.get_color()

Return a color from the matplotlib color cycle by index.

Usage

Source

access.util.get_color(
    idx,
    alpha=1.0,
    style="seaborn-v0_8-paper",
)

Parameters

idx: int

Index of the color to return.

alpha: float = 1.0

Opacity of the color between 0 and 1, by default 1.

style: str = "seaborn-v0_8-paper"
matplotlib style to choose colors from, by default ‘bmh’

Returns

_type_
description