palettes
Named color palette constants from _plotting/palettes.py.
The plotting package exposes this module as adata_science_tools.palettes.
import adata_science_tools as adtl
adtl.palettes.tol_colors
adtl.palettes.godsnot_102
Main palette constants
tol_colors: Paul Tol’s 10-color paletteIridescent: extended sequential palettevega_10vega_10_scanpyvega_20vega_20_scanpydefault_20zeileis_28default_28godsnot_102default_102
Several of these are copied or adapted from Scanpy and Matplotlib palette definitions.
Typical usage
import seaborn as sns
import adata_science_tools as adtl
sns.scatterplot(
data=df,
x="x",
y="y",
hue="group",
palette=adtl.palettes.godsnot_102,
)
Internal helper
_plot_color_cycle(...) is an internal preview helper that renders all palette lists. It is mainly used in the module’s __main__ block.
Coverage note
This module is a constants module; it does not appear to have direct regression tests.