eelbrain.plot.colors_for_categorial
- eelbrain.plot.colors_for_categorial(x, hue_start=0.2, cmap=None)[source]
Automatically select colors for a categorial model
- Parameters:
x (Factor | Interaction | NestedEffect | str) – Model defining the cells for which to define colors.
hue_start (float) – First hue value (
0 <= hue_start < 1; only for two-way or higher level models).cmap (str) – Name of a matplotlib colormap to use instead of default hue-based colors (only used for one-way models).
- Returns:
colors – Dictionary mapping each cell in
xto a color.- Return type: