pratikm pratikm - 1 year ago 106
Python Question

Invert image displayed by imshow in matplotlib

I wanted the

imshow()
function in
matplotlib.pyplot
to display images the opposite way, i.e upside down. Is there a simple way to do this?

wim wim
Answer Source

Specify the keyword argument origin='lower' or origin='upper' in your call to imshow.