https://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server