I do not know what is wrong here.
import matplotlib.pyplot as plt im = plt.imshow(plt.imread('tas.png')) plt.show()
And the Y axis is inverted.
So I wrote the argument origin='lower' .
im = plt.imshow(plt.imread('tas.png'), origin='lower') plt.show()
And what I have.
The Y axis went fine, but the image is now inverted.
Also, when I try to re-scale the X and Y axes, the image did not shrink, but only cut a piece.
Thanks in advance. I would be very grateful for the help.
Protoss reed
source share