Skip to content

Futurama

ggsci.palettes

Palette functions for ggsci

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

pal_futurama(palette='planetexpress', alpha=1.0)

Futurama color palette

Parameters

palette : str Palette name. Currently only "planetexpress" 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_futurama = scale_color_futurama module-attribute

scale_color_futurama dataclass

Bases: scale_discrete

Futurama color scale

Parameters

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

scale_fill_futurama dataclass

Bases: scale_discrete

Futurama fill scale

Parameters

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