I need to take this image and rotate it 90d and print it in black and white colors. I need to do it with matplotlib or scipy.
import scipy.misc
import matplotlib.pyplot as plt
from scipy import ndimage
face = scipy.misc.face()
rotate = ndimage.rotate(face,90)
gray = rotate
plt.imshow(gray, cmap=plt.get_cmap('gray'), vmin=0, vmax=1)
plt.show()
I saw this code in few websites but the image it only rotated.