Rick and Morty
ggsci.palettes
Palette generators for ggsci.
This module provides palette functions that either return a callable for discrete palettes or a sequence of colors for continuous palettes.
pal_rickandmorty(palette='schwifty', alpha=1.0)
Rick and Morty color palette.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
palette
|
|
Palette name. Currently only "schwifty" is available. |
'schwifty'
|
alpha
|
|
Transparency level, between 0 and 1. |
1.0
|
Returns:
| Type | Description |
|---|---|
|
A callable that takes n and returns a color sequence. |
Raises:
| Type | Description |
|---|---|
|
If the palette name is unknown or alpha is invalid. |
ggsci.scales
Plotnine scales for ggsci palettes.
scale_colour_rickandmorty = scale_color_rickandmorty
module-attribute
scale_color_rickandmorty
dataclass
Bases:
Rick and Morty color scale.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
palette
|
|
Palette name. Currently only "schwifty" is available. |
'schwifty'
|
alpha
|
|
Transparency level, between 0 and 1. |
1.0
|
scale_fill_rickandmorty
dataclass
Bases:
Rick and Morty fill scale.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
palette
|
|
Palette name. Currently only "schwifty" is available. |
'schwifty'
|
alpha
|
|
Transparency level, between 0 and 1. |
1.0
|