Figure size, font and LaTeX with matplotlib and python

To change the font in matplotlib and use LaTeX:

from pylab import * # or '%pylab inline' in ipython notebook
fontsize=18
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica'],'size':fontsize})
rc('text', usetex=True)

To change the default figure size:

rcParams['figure.figsize'] = 18,14
If you want to ask me a question or leave me a message add @bougui505 in your comment.