import matplotlib as mpl
mpl.rcParams['figure.figsize'] = 8.0, 6.0
mpl.rcParams['font.size'] = 12
mpl.rcParams['savefig.dpi'] = 100
mpl.rcParams['figure.subplot.bottom'] = 0.1
Why is matplotlib plot produced from ipython notebook slightly different from terminal version?