I have a list of three images' file names, I want to plot them using matplotlib, the attempt I made is below. I tried to plot them all but they are all plotted to the same location so the final image appears on top.
I want to plot the first at location coordinates (0,0), the second at (100,200) and the third at (200,200). I read the documentation on matplotlib.imshow but cannot find how to set the location of the image using the coordinates.
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
imageList = ["foo.jpg", "bar.jpg", "foobar.jpg"]
coordinatesList = [[0,0],[100,200],[200,200]]
for i in range(3):
imageFile = imageList[i]
coordinate = coordinatesList[i]
img=mpimg.imread(imageFile)
imgplot = plt.imshow(img)
