How can I rotate an image file and plot it in matplotlib?
I know I can open it using PIL and rotate it, but this seems way too much for this simple function, that I\
you could use the following code, which I found here:
How can I rotate a matplotlib plot through 90 degrees?
from matplotlib import pyplot, image import scipy img = scipy.misc.lena() tr = scipy.ndimage.rotate(img,45) imshow(tr)