Generate Sparkline svg Built in matplotlib Followed the tutorial by Mark Needham: https://www.markhneedham.com/blog/2017/09/23/python-3-create-sparklines-using-matplotlib/ Updated the exported image format as svg. Here's the exported svg image screenshot: