def show_image(img, strg = ""): plt.imshow(img, cmap = "Greys_r") plt.text(0, 0, strg, color = "r") plt.show()