optic.plot.randomCmap

randomCmap(nColors=100, low=0.1, high=0.99)

Generate a random colormap with the specified number of colors and random RGB values.

Parameters:
  • nColors (int, optional) – Number of colors in the colormap. Defaults to 100.

  • low (float, optional) – Lower bound for random RGB values. Defaults to 0.1.

  • high (float, optional) – Upper bound for random RGB values. Defaults to 0.99.

Returns:

Random colormap with the specified number of colors and random RGB values.

Return type:

matplotlib.colors.ListedColormap