I had to put an icon on a chart in Python last week, and I couldn’t find a good brief blog about how to do it. Here is what I cobbled together:
1. Find a free, appropriate image from The Noun Project.
2. Load it into Python with
3. Draw it in the proper place on a figure with
plt.imshow and some cryptic, hacky options.
See this all in action here: https://gist.github.com/aflaxman/c171050384471636e8f23f322ba7e9c5