eelbrain.plot.colors_for_categorial(x, hue_start=0.2, cmap=None)

Automatically select colors for a categorial model

x : categorial

Model defining the cells for which to define colors.

hue_start : 0 <= scalar < 1

First hue value (only for two-way or higher level models).

cmap : str (optional)

Name of a matplotlib colormap to use instead of default hue-based colors (only used for one-way models).

colors : dict {cell -> color}

Dictionary providing colors for the cells in x.