eelbrain.plot.colors_for_categorial
- eelbrain.plot.colors_for_categorial(x, hue_start=0.2, cmap=None)
Automatically select colors for a categorial model
- Parameters
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).
- Returns
colors – Dictionary providing colors for the cells in x.
- Return type
dict {cell -> color}