Skip to content

COSMIC

ggsci.palettes

Palette functions for ggsci

This module provides palette generation functions that return colors based on the requested number and palette parameters.

pal_cosmic(palette='hallmarks_dark', alpha=1.0)

COSMIC color palette

Parameters

palette : str Palette name: "hallmarks_dark", "hallmarks_light", or "signature_substitutions". alpha : float Transparency level, between 0 and 1.

Returns

Callable A function that takes n (number of colors) and returns a list of colors.

ggsci.scales

Plotnine scales for ggsci palettes

scale_colour_cosmic = scale_color_cosmic module-attribute

scale_color_cosmic dataclass

Bases: scale_discrete

COSMIC color scale

Parameters

palette : str Palette name: "hallmarks_dark", "hallmarks_light", or "signature_substitutions". alpha : float Transparency level, between 0 and 1.

scale_fill_cosmic dataclass

Bases: scale_discrete

COSMIC fill scale

Parameters

palette : str Palette name: "hallmarks_dark", "hallmarks_light", or "signature_substitutions". alpha : float Transparency level, between 0 and 1.