neuralib.plot.colormap.insert_cyclic_colorbar

neuralib.plot.colormap.insert_cyclic_colorbar(ax, im, *, num_colors=12, num_labels=4, width=0.6, inner_diameter=0.6, vmin=None, vmax=None)[source]

Insert cyclic colormap in inset_axes

Parameters:
  • ax (Axes) – Axes

  • im (_ScalarMappable) – ScalarMappable

  • num_colors (int) – Number of color in the cyclic colorbar

  • num_labels (int) – Number of labels in the cyclic colorbar

  • width (float) – Width of the each color

  • inner_diameter (float) – The size of the inner circle

  • vmin (float | None) – Min value of the colormap, equal to vmax in cyclic data

  • vmax (float | None) – Max value of the colormap, equal to vmin in cyclic data

Return type:

None