python 2 colorbar on same size as figure code example Example: change colorbar size and place python plt.colorbar(im,fraction=0.046, pad=0.04)