I am running the following code snip:
from matplotlib.colors import ListedColormap cm = ListedColormap([\'green\',\'red\']) cm.set_bad(color="black"