create_neural_colormap

create_neural_colormap#

class braintools.visualize.create_neural_colormap(name, colors, n_bins=256)#

Create custom colormap for neural data.

Parameters:
  • name (str) – Name of the colormap.

  • colors (List[str]) – List of colors for the colormap.

  • n_bins (int) – Number of color bins.

Returns:

cmap – Custom colormap.

Return type:

LinearSegmentedColormap