Invert image displayed by imshow in matplotlib December 15, 2022 by Tarik Specify the keyword argument origin='lower' or origin='upper' in your call to imshow.