I made a three-dimensional inscription of the plot layer on top of the background image:

If this looks like what you want, I could try to make a working example out of it.
Alternatively, if you just want to display the image in three-dimensional space, you can use a surface plot:
from pylab import * from mpl_toolkits.mplot3d import Axes3D from matplotlib.cbook import get_sample_data from matplotlib._png import read_png fn = get_sample_data("lena.png", asfileobj=False) img = read_png(fn) x, y = ogrid[0:img.shape[0], 0:img.shape[1]] ax = gca(projection='3d') ax.plot_surface(x, y, 10, rstride=5, cstride=5, facecolors=img) show()
Of course, step values ββcan be reduced to 1 for better image quality, but then drawing will take loooong =)
The resulting image from the code above:

source share