Add image annotations to bar plots
This solution will work for axes level plots produced with matplotlib, seaborn, and pandas.DataFrame.plot. The main idea would be to separate the problem into small pieces: Get the flag as an array into the script. E.g. def get_flag(name): path = “path/to/flag/{}.png”.format(name) im = plt.imread(path) return im Position an image at a certain position in a … Read more