Rather use ``cmap=plt.cm.gray`` after imshow.