color range python matplotlib code example
Example 1: matplotlib set colorbar range
plt.pcolor(X, Y, f(data), cmap=cm, vmin=-4, vmax=4)
Example 2: colorbar min max matplotlib
plt.imshow(im,interpolation='none',vmin=minval,vmax=maxval)
plt.pcolor(X, Y, f(data), cmap=cm, vmin=-4, vmax=4)
plt.imshow(im,interpolation='none',vmin=minval,vmax=maxval)