eelbrain.plot.GlassBrain.plot_colorbar

GlassBrain.plot_colorbar(label=True, label_position=None, label_rotation=None, clipmin=None, clipmax=None, orientation='horizontal', *args, **kwargs)

Plot a colorbar corresponding to the displayed data

Parameters
  • label (str | bool) – Label for the x-axis (default is based on the data).

  • label_position ('left' | 'right' | 'top' | 'bottom') – Position of the axis label. Valid values depend on orientation.

  • label_rotation (scalar) – Angle of the label in degrees (For horizontal colorbars, the default is 0; for vertical colorbars, the default is 0 for labels of 3 characters and shorter, and 90 for longer labels).

  • clipmin (scalar) – Clip the color-bar below this value.

  • clipmax (scalar) – Clip the color-bar above this value.

  • orientation ('horizontal' | 'vertical') – Orientation of the bar (default is horizontal).

Returns

colorbar – ColorBar plot object.

Return type

plot.ColorBar