def plot_mnist_digit(image):
 fig = plt.figure()
 ax = fig.add_subplot(1, 1, 1)
 ax.matshow(image, cmap=matplotlib.cm.binary)
 plt.xticks(np.array([]))
 plt.yticks(np.array([]))
 plt.show()

def plot_mnist_digit ( image ) : fig = plt . figure ( ) ax = fig . add_subplot ( 1 , 1 , 1 ) ax . matshow ( image , cmap = matplotlib . cm . binary ) plt . xticks ( np . array ( [ ] ) ) plt . yticks ( np . array ( [ ] ) ) plt . show ( )
plot a single mnist image .