Skip to content

UCSCGB

ggsci.palettes

Palette functions for ggsci

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

pal_ucscgb(palette='default', alpha=1.0)

UCSC Genome Browser color palette

Parameters

palette : str Palette name. Currently only "default" is available. 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_ucscgb = scale_color_ucscgb module-attribute

scale_color_ucscgb dataclass

Bases: scale_discrete

UCSC Genome Browser color scale

Parameters

palette : str Palette name. Currently only "default" is available. alpha : float Transparency level, between 0 and 1.

scale_fill_ucscgb dataclass

Bases: scale_discrete

UCSC Genome Browser fill scale

Parameters

palette : str Palette name. Currently only "default" is available. alpha : float Transparency level, between 0 and 1.