Flipping a picture across the vertical axis in python
Question: I am trying to flip a picture across its vertical axis in python but have no
idea how to start. any suggestion would be appreciated. Thanks.


Answer: For something as simple as this, PIL is not really needed - you can do it with
numpy `fliplr`.

    
    
    import matplotlib.pyplot as plt
    import numpy as np
    
    im = np.flipud(plt.imread('so.jpg'))
    plt.subplot(2, 1, 1)
    plt.imshow(im)
    plt.subplot(2, 1, 2)
    plt.imshow(np.fliplr(im))
    plt.show()
    

![enter image description here](http://i.stack.imgur.com/X6jOu.png)

wolf revok cats !

