set_position

ColorBar.set_position(pos)

Set the position of the colorbar (and all colorbars that share the same location)

Parameters:

pos ([left, bottom, width, height] or Bbox) – The new position of the in .Figure coordinates.