sinebow#

omnipose.plot.sinebow(N, bg_color=[0, 0, 0, 0], offset=0)[source]#

Generate a color dictionary for use in visualizing N-colored labels. Background color defaults to transparent black.

Parameters
  • N (int) -- number of distinct colors to generate (excluding background)

  • bg_color (ndarray, list, or tuple of length 4) -- RGBA values specifying the background color at the front of the dictionary.

Returns

Dictionary with entries {int

Return type

RGBA array} to map integer labels to RGBA colors.