data = np.random.random_sample((25, 25))
mask = np.diag(np.ones(25))
masked_data = ma.masked_array(data, mask)
cm.jet.set_bad(color='white', alpha=None)
pcolormesh(masked_data, cmap=cm.jet)
colorbar()
show()
Make reverse diagonals white in heatmap