I am trying to add an image to the xy axis of a 3d chart in Matplotlib. There will be a bar chart over the top of this but currently I'm trying to figure out how to get just an image to appear. Here's my code, all it returns so far is blank 3d axes, although the limits are what I want. I've tried importing the image as a jpeg and png, and can get it to show on 2d axes just by plotting it. I've tried following the code in this question: Add background image to 3d plot, but am stuck on how to import an image from the directory instead of using get_sample_data.
'''''
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
img = mpimg.imread('ukmap.jpg')
fig=plt.figure()
ax1=fig.add_subplot(111,projection='3d')
ax1.imshow(img, zorder=1, extent = [-10, 1.77, 49.88, 58.7] , alpha = 0.8)
'''''