tacco.plots.get_default_colors¶
- get_default_colors(n, offset=0)[source]¶
Chooses default colors. This is a convenience wrapper around
seaborn.color_palette()
which provides a quasi-periodicity of 10, i.e. every 10 colors, the colors are related.- Parameters:
n – Number of colors to choose OR a list of keys to choose colors for.
offset – The number of chosen colors to skip before starting to use them. This is useful for generating different sets of colors.
- Returns:
If n is a number, returns a list of colors. If n is a list-like, returns a mapping of the elements of n to colors.