import matplotlib.pyplot as plt
import Image
import numpy as np
im = Image.open('/home/jofer/logo.png')
height = im.size[1]
im = np.array(im).astype(np.float) / 255
fig = plt.figure()
plt.plot(np.arange(10), 4 * np.arange(10))
fig.figimage(im, 0, fig.bbox.ymax - height)
fig.savefig('/home/jofer/temp.png', dpi=80)
plt.show()
how to insert a small image on the corner of a plot with matplotlib?