neuralib.plot.colormap.get_customized_cmap

neuralib.plot.colormap.get_customized_cmap(name, value, numbers, endpoint=True)[source]

Generate gradient color map array. N = number of color

Parameters:
  • name (str) – name of cmap

  • value (tuple[float, float]) – value range, could be 0-1

  • numbers (int) – N

  • endpoint (bool) – If cyclic colormap, then used False

Returns:

RGBA. Array[float, [N, 4]]

Return type:

ndarray