colorize_subsets¶
-
glue.core.util.
colorize_subsets
(subsets, cmap, lo=0, hi=1)[source]¶ Re-color a list of subsets according to a colormap
Parameters: - subsets – List of subsets
- cmap – Matplotlib colormap instance
- lo – Start location in colormap. 0-1. Defaults to 0
- hi – End location in colormap. 0-1. Defaults to 1
The colormap will be sampled at len(subsets) even intervals between lo and hi. The color at the ith interval will be applied to subsets[i]