x = np.random.uniform(0.0, 10.0, 15)
y = np.random.uniform(0.0, 10.0, 15)
datafile = cbook.get_sample_data('lena.jpg')
img = imread(datafile)
plt.scatter(x, y, zorder=1)
plt.imshow(img, zorder=0, extent=[0.5, 8.0, 1.0, 7.0])
plt.show()
Adding a background image to a plot with known corner coordinates