I have little problem with axis change.
import matplotlib.pyplot as plt
import numpy as np
from pylab import *
im = plt.imshow(np.flipud(plt.imread('tas.png')), origin='lower')
plt.show()
I had loaded the image and got axis for my image. For X(0-800)&for Y(0-600).
I don’t need such as scale all what i need it is a image as background for my plotting with coordinates which on another axis X(35 77) Y(0 16)
But when i wrote
import matplotlib.pyplot as plt
import numpy as np
from pylab import *
im = plt.imshow(np.flipud(plt.imread('tas.png')), origin='lower')
plt.axis([35, 75, 0, 16])
plt.show()
I got only the small part of image. Could anyone help? I would be so grateful for some help.
You want the
extentkeyword:imshowdocumentation.