How to change DPI in Matplotlib

Updated post here: https://codeyarns.github.io/tech/2015-07-29-how-to-change-dpi-in-matplotlib.html