def plot_2_and_1(images):
 fig = plt.figure()
 ax = fig.add_subplot(1, 2, 1)
 ax.matshow(images[5], cmap=matplotlib.cm.binary)
 plt.xticks(np.array([]))
 plt.yticks(np.array([]))
 ax = fig.add_subplot(1, 2, 2)
 ax.matshow(images[3], cmap=matplotlib.cm.binary)
 plt.xticks(np.array([]))
 plt.yticks(np.array([]))
 plt.show()

def plot_2_and_1 ( images ) : fig = plt . figure ( ) ax = fig . add_subplot ( 1 , 2 , 1 ) ax . matshow ( images [ 5 ] , cmap = matplotlib . cm . binary ) plt . xticks ( np . array ( [ ] ) ) plt . yticks ( np . array ( [ ] ) ) ax = fig . add_subplot ( 1 , 2 , 2 ) ax . matshow ( images [ 3 ] , cmap = matplotlib . cm . binary ) plt . xticks ( np . array ( [ ] ) ) plt . yticks ( np . array ( [ ] ) ) plt . show ( )
plot a 2 and a 1 image from the mnist set .