eelbrain.plot.colors_for_twoway
- eelbrain.plot.colors_for_twoway(x1_cells, x2_cells, hue_start=0.2, hue_shift=0.0, hues=None, lightness=None)[source]
Define cell colors for a two-way design
- Parameters:
hue_start (float) – First hue value (
0 <= hue_start < 1).hue_shift (float) – Use that part of the hue continuum between categories to shift hue within categories (
0 <= hue_shift < 1).hues (Sequence[float]) – List of hue values corresponding to the levels of the first factor (overrides regular hue distribution).
lightness (float | Sequence[float]) – If specified as scalar, colors will occupy the range
[lightness, 100-lightness]. Can also be given as list with one value corresponding to each element in the second factor.
- Returns:
colors – Mapping from cells to colors.
- Return type: