how to fix the values of colorbar limits in matplotlib code example Example: colorbar min max matplotlib plt.imshow(im,interpolation='none',vmin=minval,vmax=maxval)