I used the following code to define a (binary) colormap:
import matplotlib.cm as cm cmbi = cm.get_cmap(\'Greys\',2) cmbi=cmbi.reversed()
This