Matplotlib Set DPI
import matplotlib as mpl
mpl.rcParams['figure.dpi'] = 300
Real Raccoon
import matplotlib as mpl
mpl.rcParams['figure.dpi'] = 300