how to set size of colorbar imshow similar to matsho python code example Example: change colorbar size and place python plt.colorbar(im,fraction=0.046, pad=0.04)