I have the following code:
import matplotlib.pyplot as plt cdict = { \'red\' : ( (0.0, 0.25, .25), (0.02, .59, .59), (1., 1., 1.)), \'green\': ( (0.0
Use the CLIM function (equivalent to CAXIS function in MATLAB):
plt.pcolor(X, Y, v, cmap=cm) plt.clim(-4,4) # identical to caxis([-4,4]) in MATLAB plt.show()