WrightTools.artists.get_color_cycle
- WrightTools.artists.get_color_cycle(n, cmap='rainbow', rotations=3)[source]
Get a list of RGBA colors following a colormap.
Useful for plotting lots of elements, keeping the color of each unique.
- Parameters:
n (integer) – The number of colors to return.
cmap (string (optional)) – The colormap to use in the cycle. Default is rainbow.
rotations (integer (optional)) – The number of times to repeat the colormap over the cycle. Default is 3.
- Returns:
List of RGBA lists.
- Return type: