m = mlab.mesh(x, y, z, scalars=z, mask=mask)
colors = np.zeros((2, 4), dtype='uint8')
colors[:, (1)] = 255
colors[:, (3)] = 255
m.module_manager.scalar_lut_manager.lut.table = colors
How to use mask for Mayavi's grid plots?