It is definitely possible. Here is the start:
import matplotlib, scipy fig = matplotlib.figure() ax = fig.add_axes([0.1,0.1,0.8,0.8]) axicon = fig.add_axes([0.4,0.4,0.1,0.1]) ax.plot(range(5), [4,2,3,5,1]) axicon.imshow(scipy.randn(100,100)) axicon.set_xticks([]) axicon.set_yticks([]) fig.show()
Icon Overlay http://up.stevetjoa.com/iconoverlap.png
In this example, the position of the icon was not defined in terms of graphs (x, y); maybe someone can help with this. However, I hope this example is useful.
source share