how to grayscale an image in photoshop code example Example: imshow grayscale plt.imshow(im, cmap='gray')